Thursday, June 2, 2011

Purge packages

The purge package (or the --purge) option in apt-get deletes configuration files along with the package content.

To identify packages that were removed but not purge, use pdkg -l to list all packages, and grep ^rc to find the lines that start with rc.

Finally, the whole command is:

sudo apt-get purge `dpkg -l | grep ^rc | cut -d' ' -f3 | xargs echo`

No comments:

Post a Comment