5May/12Off
Config cleanup
A one liner to remove all stale pkg config files on a system after the main programs have been removed.
WARNING: There's no going back so make sure you do want all these config files removed and that they're not being used in any way.
1 | apt-get purge `dpkg -l | awk '/^rc/ {foo = foo $2 " "} END {print foo}'` |
5Jul/11Off
apt autoclean

To have apt-get/aptitude auto-clean all the downloaded .deb files after running an "update" (to keep as much free space as possible) simply add the following to /etc/apt/apt.conf.d/00autoclean
Aptitude::Autoclean-After-Update; |