PDA

View Full Version : Kernal Cleanup



jbillingsle01
31st October 2006, 04:41 PM
I recently ran "yum update" and it installed about 250 updates. Apparently a new kernal version was one of them. I noticed that the old kernal is still looming in my grub boot menu. Now, I know how to remove that from the list, but is there any other cleanup procedures that I should do to remove old kernal components or anything like that?

mlager
31st October 2006, 04:47 PM
First look for what kernels you have installed.


rpm -qa |grep kernel

it should give you for example:

kernel-2.6.17-1.2187.fc6
kernel-devel-2.6.17-1.2187.fc6
kernel-2.6.18-1.2798.fc6
kernel-devel-2.6.18-1.2798.fc6
kernel-headers-2.6.18-1.2798.fc6

Spot the older kernel you want to remove, in this case the 2.6.17.....

Use yum to remove it:


yum -y remove kernel-2.6.17*

That should do the trick.

jbillingsle01
31st October 2006, 06:21 PM
Sweet, Thanks for the help buddy

bob
31st October 2006, 06:54 PM
You've probably removed it by this time, but as info, with FC-5 the newest and one prior kernel are kept by default and the older ones removed automatically. This would leave one working kernel to boot into in case the new kernel didn't work or had problems at some time.

IPI
12th November 2006, 10:11 PM
Thanks mlager, worked beautifully! :)