Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
change the boot menu - GRUB

I regularly update my ubuntu (10.04), and new minor versions keep accumulating on the GRUB screen. Right now I have 5 different versions listed on the GRUB, even though I always select the latest version to work with.

Am I supposed to do anything to get rid of the old version references? Do these old versions affect disk space/performance?

share|improve this question

migrated from Apr 20 '10 at 1:19

This question came from our site for professional and enthusiast programmers.

marked as duplicate by quack quixote Apr 20 '10 at 2:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Go to System -> Administration -> Synaptic. Search for packages whose name begins linux-headers- and linux-image-. Mark all but the latest version of each for uninstallation.

Old kernels will have no effect on performance, but sure, like all old packages they will take up disc space. After uninstalling, you could also clear out /var/cache/apt/archives/*.deb.

share|improve this answer
I think it would be preferable to do sudo apt-get autoclean, instead of deleting /var/cache/apt/archives/*.deb Also, this question should go to, as it is not programming related. – user9563 Apr 19 '10 at 8:19
@a programmer - Thanks for your warning. I will keep that in mind the next time. – artsince Apr 19 '10 at 8:38

Remember that the Linux kernel is monolithic, so many drivers are compiled into it when it is built, though now, there are many modules available that can be loaded at runtime. Given this information, it is recommended that you usually keep at least the last kernel version on your machine, incase the new version has drivers that conflict with your current hardware. As bobince mentioned, you can simply remove the versions of the kernel you do not want. Since hard disk space is in abundance (usually) in modern machines, I would recommend simply removing the entries from the bootloader menu configutation rather than uninstalling the kernels. You can do this by opening the Terminal and typing "gksudo /boot/grub/menu.lst", finding the lines for the old kernel versions, and either deleting them, or placing a # (comment marker) before the Title line.

share|improve this answer

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