Removing unwanted kernels
Paul Howarth
paul at city-fan.org
Mon Mar 14 12:32:26 UTC 2005
David Niemi wrote:
> What is the best way to get rid of many of the old and non-working
> kernels out of Grub? Sure, I could go in as root hacking up Grub and
> blowing away files but I know this isn't too good an idea :)
>
> Here is a list of my kernels:
> [me at Jenny grub]$ rpm -qa | grep kernel
> kernel-smp-2.6.9-1.667
> kernel-smp-2.6.10-1.770_FC3
> kernel-smp-2.6.10-1.741_FC3
> kernel-smp-2.6.10-1.760_FC3
> kernel-smp-2.6.10-1.766_FC3
> kernel-utils-2.4-13.1.49_FC3
> kernel-2.6.10-1.760_FC3
> kernel-2.6.10-1.766_FC3
> kernel-2.6.9-1.667
> kernel-2.6.10-1.741_FC3
> kernel-2.6.10-1.770_FC3
>
> The kernels were installed via up2date and I have read through the
> fedoranews page for "yum-remove" at:
> http://fedoranews.org/tchung/yum-remove/
>
> Would that be the proper procedure to remove the extra kernels or just
> use "rpm -e kernel..." as I found elsewhere.
Use "rpm -e kernel-version-release"
It will fix up the grub.conf entries accordingly.
Don't delete the kernel you are running (see "uname -r").
Paul.
More information about the users
mailing list