As a follow-on to something Telemachos said in
another post:
Quote:
Originally Posted by Telemachos
You can see what kernels you have installed - to check if you have a virtual kernel and to clean up - by running this command:
Code:
aptitude search ~ilinux-image
If you've been installing kernel-headers along with the kernels (say to build modules for graphics or wireless), you should remove those when you remove the corresponding kernel. The command to search for those is parallel:
Code:
aptitude search ~ilinux-headers
Hope this helps.
|
I would have thought that removing a given kernel package would trigger the removal of the older kernel headers. Can someone confirm that is, or is not, the behavior? I ask this because it seemed to me that the older kernel header packages were indeed removed when I removed some older kernel packages. For example, the linux kernels I have installed are:
Code:
dpkg-query --show --showformat='${Package}\n' linux-image-\*
linux-image-2.6
linux-image-2.6-amd64
linux-image-2.6.18-5-amd64
linux-image-2.6.18-6-amd64
linux-image-2.6.25-2-amd64
linux-image-2.6.26-1-amd64
Also, the linux-headers packages I have installed are:
Code:
dpkg-query --show --showformat='${Package}\n' linux-headers\*
linux-headers
linux-headers-2.6
linux-headers-2.6.25-2-amd64
linux-headers-2.6.25-2-common
linux-headers-2.6.26-1-amd64
linux-headers-2.6.26-1-common
So, when I get around to removing the
linux-image-2.6.25-2-amd64 package like this:
Code:
apt-get remove linux-image-2.6.25-2-amd64
I would expect apt-get to automatically also remove
linux-headers-2.6.25-2-amd64 and
linux-headers-2.6.25-2-common. Is that what will happen, or do I need to explicitly state all three packages on the apt-get remove command?
Thanks,
bgoodr