Skip to content

Instantly share code, notes, and snippets.

@eusonlito
Last active July 1, 2022 01:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eusonlito/4746228 to your computer and use it in GitHub Desktop.
Save eusonlito/4746228 to your computer and use it in GitHub Desktop.
Upgrade a GNU/Linux Debian or Ubuntu system with only one command
#/bin/sh
if [ "`whoami`" != 'root' ]; then
echo ''
echo 'Only root can execute this script'
echo ''
exit 1
fi
apt clean
apt autoclean
apt update && apt dist-upgrade --assume-yes --allow-unauthenticated
apt autoremove --assume-yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment