A while ago I read a suggestion for an order in which to run apt update/upgrade/autoremove/dist-upgrade, so I ended up adding this to my .bash_aliases
:
sup () {
echo '______________________________________________________________________'
echo -e "Updating packages list…\n"
sudo apt-get update -y &>/dev/null
echo '______________________________________________________________________'
echo -e "Upgrade…\n"
sudo apt-get upgrade -y
echo '______________________________________________________________________'
echo -e "Dist-upgrade…\n"
sudo apt-get dist-upgrade -y
echo '______________________________________________________________________'
echo -e "Autoremove…\n"
sudo apt-get autoremove -y
echo '______________________________________________________________________'
echo -e "Upgrade…\n"
sudo apt-get upgrade -y
echo '______________________________________________________________________'
echo -e "Autoremove…\n"
sudo apt-get autoremove -y
}
The name sup
came from “sudo upgrades”, but really although it’s a stupid name, I’ve kept it because I’ve gotten in the habit of typing it. You don’t need the echo
lines of course, but it helps me when I watch it.