Skip to content

Instantly share code, notes, and snippets.

@woile
Last active September 2, 2021 14:44
Show Gist options
  • Select an option

  • Save woile/672e663b1e1bac3a4687 to your computer and use it in GitHub Desktop.

Select an option

Save woile/672e663b1e1bac3a4687 to your computer and use it in GitHub Desktop.
Shell command to correctly update system
#!/bin/bash
sudo apt -y autoremove &&
sudo apt install -y --fix-broken &&
sudo apt update &&
sudo apt -y upgrade -f &&
sudo apt -y dist-upgrade -f &&
sudo apt install -y --fix-broken &&
sudo dpkg --configure -a &&
sudo apt -y autoremove -f &&
sudo aptitude purge -y '~c' &&
echo -e '\e[1;32m=[[ system upgrade complete ]]=\033[00m'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment