Kernel management in Ubuntu

Tags:

So you want to slim down that list of kernels that GRUB displays at boot time. First off, the menu configuration is at /boot/grub/menu.lst

To see which kernels in the 2.6 series are installed through the package manager, and I highly recommend using that, do:

`

dpkg --get-selections | grep linux-image-2.6

`

This will return something like:

`

linux-image-2.6.24-16-generic deinstall linux-image-2.6.24-17-generic deinstall linux-image-2.6.24-18-generic install linux-image-2.6.24-19-generic install `

You can see I have already removed -16 and -17. Now, to remove another one:

`

apt-get remove linux-image-2.6.24-18-generic

`