Last active
August 7, 2023 08:18
-
-
Save Max95Cohen/0bc9ae1c0cb58330acc88151d8f2ac1f to your computer and use it in GitHub Desktop.
update.sh apt update script
This file contains 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
date | |
sudo apt update | |
apt list --upgradable | |
sudo apt -y upgrade | |
sudo apt autoclean | |
sudo apt autopurge | |
sudo apt autoremove --purge | |
if [ -f /var/run/reboot-required ]; then | |
echo 'reboot required' | |
fi | |
sudo apt clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment