PDA

View Full Version : [ubuntu] How would I uninstall old kernels after recent dist-upgrade?



madmax.santana
January 4th, 2010, 01:37 PM
I upgraded Ubuntu and noticed that it had installed the new kernel. That's good, but when I start my PC, old kernels also appear in my OS choice menu which appears very unorganized and shabby.
1 way is to manually edit my grub.conf file and comment out older kernel entries. But they are consuming space anyway, so why not completely remove them?
Is there a proper way?

MelDJ
January 4th, 2010, 02:59 PM
remove it in synaptic

madmax.santana
January 5th, 2010, 09:35 PM
a-an!!! I know that pal... I need directions, the proper way... What would i type after "apt-get remove"...

darco
January 5th, 2010, 09:45 PM
In synaptic, search for linux-headers. Choose the old kernel. Mark for complete removal, it will also tag the generic hearders as well. Then search for linux-image, mark it for complete removal. Click apply.
If you have grub2, run update-grub in a terminal and it will remove it from the menu list on boot up. If you have grub legacy, I believe you need to edit the grub menu.lst


darco

madmax.santana
January 5th, 2010, 10:32 PM
Okey dokey!!! Thanks guv!