Created
July 19, 2018 20:35
-
-
Save josephabrahams/a3037b09f640523aba1c71f73b04ef62 to your computer and use it in GitHub Desktop.
Safely upgrade system dependencies
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
#!/bin/bash | |
sudo apt-get update && \ | |
sudo apt-get -y upgrade --with-new-pkgs && \ | |
sudo apt-get -y autoremove && \ | |
sudo apt-get -y autoclean | |
if [ -f /var/run/reboot-required ]; then | |
echo "Reboot required." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment