Last active
August 2, 2024 09:53
-
-
Save Satal/f2a9ded88005fe8f573ea2725db0970b to your computer and use it in GitHub Desktop.
An update script for ubuntu
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
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
apt update -y && apt upgrade -y && apt dist-upgrade -y && apt autoclean -y && apt autoremove -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment