Updating and Cleaning using 'apt' and 'dpkg' on the command line
The following are the commands I use to update my Debian (or any apt) system. These commands will help you update your system and then clean update after, including any cruft.
Hope this helps you update then clean up afterwards.
sudo apt update
sudo apt full-upgrade
sudo apt autoremove
sudo apt purge `dpkg --list | grep ^rc | awk '{ print $2; }'`
sudo apt clean all
Hope this helps you update then clean up afterwards.
Comments
Display comments as Linear | Threaded