This script automatically updates Debian-based distros. Also includes server updating script.
To execute this script, run the following commands as root:
chmod +x update.sh / update-server.sh
./SCRIPT- Automatically reconfigures
dpkgif anything is wrong. - Updates and upgrades the system.
- Performs
apt install -fto fix broken dependencies. - Runs
apt autocleanandapt autoremoveto 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.
nano /home/$NAME/Desktop/UpdateSystem.desktop[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.
chmod +x /home/$NAME/Desktop/UpdateSystem.desktopPS. Closes the window once all updates/upgrades are done.