Skip to content

Instantly share code, notes, and snippets.

@Satal
Created October 31, 2023 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Satal/f2a9ded88005fe8f573ea2725db0970b to your computer and use it in GitHub Desktop.
Save Satal/f2a9ded88005fe8f573ea2725db0970b to your computer and use it in GitHub Desktop.
An update script for ubuntu
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