|
2008-09-13
, 19:32
|
Posts: 566 |
Thanked: 150 times |
Joined on Dec 2007
|
#12
|
dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }')
This constructs a list of packages which are removed but still have their configuration files installed (denoted by the ^rc pattern) and passes this list to the package management utility to purge all obsolete files. (source)
dpkg --list | grep ^rc | awk '{ print $2; }'
The Following 3 Users Say Thank You to iamthewalrus For This Useful Post: | ||
|
2008-10-18
, 01:32
|
Posts: 17 |
Thanked: 0 times |
Joined on Aug 2008
@ Puerto Rico
|
#13
|
On the desktop there is 'deborphan' to remove orphaned packages. Digging through the forum I found this command: that deletes leftover config files:
Code:dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }')
I haven't tried this myself so I have no idea if this works well. You can see what would be uninstalled with:
so you can delete them manually using dpkg --purge name-of-the-packageCode:dpkg --list | grep ^rc | awk '{ print $2; }'
I tried apt-get remove -- purge, apt-get autoremove, and apt-get clean, recovered almost 3MB free