Purge All dpkg Packages Marked As rc

Title says it all. Purges the packages and their configuration files. Watch out for “directory not empty” messages and manually delete those.

dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs apt-get autoremove --purge -y

Original: http://linuxprograms.wordpress.com/2010/05/12/remove-packages-marked-rc/

Leave a Reply

Your email address will not be published. Required fields are marked *

 

Post Navigation