Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.

I know I can manually search through the installed packages and remove them.

Does Ubuntu provide any easier way to clean them up or keep them from showing in the boot list?

share|improve this question

31 Answers 31

in addition to the above answers you could try to remove the kernel image + system.map + config files manually. grub looks for those files in the /boot directory.

remove any files not related to the kernel version(s) you use. if you are using only the latest version, let's say 3.2.0-25, it should be safe to remove all 2.6.* and 3.0.* versions. so you type ls -alF /boot/2.6. to see what's there and remove those. same with all the other versions except the one(s) you are using.

NB: when updating the kernel it may be good policy to keep the version that previously worked best for you

share|improve this answer
2  
This seems likely to break things, particularly when 3rd party modules have been installed. –  leonardo Apr 1 '13 at 15:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.