Skip to content

AmirIqbal1/auto-update-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

auto-update-script

This script automatically updates Debian-based distros. Also includes server updating script.

Instructions

To execute this script, run the following commands as root:

chmod +x update.sh / update-server.sh
./SCRIPT

Features

  • Automatically reconfigures dpkg if anything is wrong.
  • Updates and upgrades the system.
  • Performs apt install -f to fix broken dependencies.
  • Runs apt autoclean and apt autoremove to clean up unnecessary packages and downloaded files.
  • Updates Flatpak packages (comment the relevant line to disable this).

This is a simple script for Debian-based distros. It includes auto-reboot features, which you can enable by editing out the comments.

Automation:

1. Create a .desktop File for the Shortcut:

nano /home/$NAME/Desktop/UpdateSystem.desktop

2. Add the following content:

[Desktop Entry]
Name=Update System
Comment=Update and upgrade the system with root privileges
Exec=pkexec bash /home/$USER/update.sh
Icon=system-software-update
Terminal=true
Type=Application
Categories=Utility;System;
  • pkexec prompts for an admin password.
  • Terminal=true keeps the terminal open to view progress.

3. Make the Shortcut Executable

chmod +x /home/$NAME/Desktop/UpdateSystem.desktop

PS. Closes the window once all updates/upgrades are done.

About

This script auto updates Debian based distros.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages