Created
May 10, 2025 00:36
-
-
Save Neolot/5a57f9800fa87ca22da3edd8dd9f4d15 to your computer and use it in GitHub Desktop.
Simple update script for Debian-based distribution (Debian, Ubuntu, etc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/sh | |
sudo apt update && sudo apt list --upgradable | |
echo 'Do you want to run the update? (Y/n)' | |
read INPUT | |
case $INPUT in | |
n) | |
echo 'Update cancelled.' | |
exit | |
;; | |
esac | |
sudo apt upgrade && sudo apt autoremove && sudo snap refresh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment