PDA

View Full Version : [ubuntu] [SOLVED] Removing Old/Out Dated Kernels



takuhii
May 27th, 2008, 04:08 PM
I have about 16 kernels installed on my PC how do I go about cleaning them up. I'm using Hardy Heron (8.04), I'd like to just keep one of two in case of errors in any updated kernels going forwards...

drs305
May 27th, 2008, 04:11 PM
I have about 16 kernels installed on my PC how do I go about cleaning them up. I'm using Hardy Heron (8.04), I'd like to just keep one of two in case of errors in any updated kernels going forwards...

You can uninstall them via synaptic and it will update grub as well. It is recommended to keep at least the 2 most recent ones.

Cypher
May 27th, 2008, 04:11 PM
You can safely remove the older kernels with


sudo apt-get autoremove linux-image-<version>-generic

Where <version> would be something like 2.6.22-14.52, and so on.

wdaniels
May 27th, 2008, 04:12 PM
In Synaptic search on package name for linux-image, there you can select to remove all the kernels you no longer want to keep.

Scooby Doo
May 27th, 2008, 04:13 PM
How can I find out which versions I have installed?

Cypher
May 27th, 2008, 04:15 PM
dpkg -l | grep linux-image

Nepherte
May 27th, 2008, 04:16 PM
Search for linux-headers in synaptic.

drs305
May 27th, 2008, 04:18 PM
How can I find out which versions I have installed?

Those that are installed (used and not used) will all have the green check box in synaptic. Look for linux-image

Scooby Doo
May 27th, 2008, 04:23 PM
Thanks. I have 3 installed so I think I'll leave it for now.

kansasnoob
May 27th, 2008, 04:37 PM
Some alternatives to removal:

http://ubuntuforums.org/showthread.php?t=808132