Skip to content

Instantly share code, notes, and snippets.

@malderete
Created March 21, 2017 02:12
Show Gist options
  • Save malderete/8e33eb022affd98c272db030c2d0a8b4 to your computer and use it in GitHub Desktop.
Save malderete/8e33eb022affd98c272db030c2d0a8b4 to your computer and use it in GitHub Desktop.
Bash script to full upgrade a Debian system
#!/bin/bash
sudo apt-get -f install &&
sudo apt-get update &&
sudo apt-get check &&
sudo apt-get upgrade -f -y &&
sudo apt-get dist-upgrade -f -y -q &&
sudo dpkg --configure -a &&
sudo apt-get autoclean &&
sudo apt-get autoremove -f &&
#sudo aptitude purge '~c' &&
echo -e "\033[1;32m[[ system upgrade complete ]]\033[1m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment