Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Upgrade a GNU/Linux Debian or Ubuntu system with only one command
if [ "`whoami`" != 'root' ]; then
echo ''
echo 'Only root can execute this script'
echo ''
exit 1
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