Running aptitude search '~c'
prints a whole bunch of removed but not purged
packages, including, e.g., all kernels I have ever had installed (starting with linux-image-3.19.0-30-generic
).
Why haven't they been purged?
How can I purge them all in a single command? IOW, is
aptitude purge $(aptitude search '~c' -F %p)
safe?
They haven't been purged because there's no reason to. The kernel files left are mostly those concerning
dpkg
. There's no harm in having them around.As for purging them: