May 26, 2009

Ubuntu – Purge configuration files for removed packages

Filed under: How To, Linux, Ubuntu — James @ 11:24 am

This bash command will remove the left over config files from old packages that were removed with “apt-get remove”.

dpkg -l | awk '/^rc/ {print $2}' | xargs sudo dpkg --purge

See the source article for an explanation of how it works.