Skip to content

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.

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.

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options