PDA

View Full Version : Annoying problem when I update Red Hat Kernel


3777
03-25-03, 08:37 PM
Sorry but posting here because no one even saw this post for 4 hours in the other Linux section:rolleyes:

Ok whenever I update to the latest kernel for Red Hat via the Red Hat Network, when I reboot..... (I use Grub) .....the boot up screen then adds the Kermel I just updated too, plus the version I just updated from. I now have about 7 different Red Hat Kernel options,(2.8.17.8, 2.8.18.8, 2.8.19.8, ect.....) and DOS which is actually XP Pro. Just wondering what I need to do to get rid of the older kernels listings on the grub boot up menu?:confused:

Wolfman [TWP]
03-25-03, 08:55 PM
Do the following:

rpm -qa kernel

This will list ALL of the installed kernels.

Then run rpm -e kernel-version_you_want_to_remove

This will remove the old version AND remove the entry from the GRUB list at the same time.

Wolf

PS: I usually KEEP at least 1 or 2 of the older kernel versions, just incase there is a problem. But keeping at least one older version will be a safe way to do things. Also I assume that you running RH8.0 looking from the versions your running. You can subscribe to the RH8.0 list via the link below, and you should/will get some great help to what ever problems you might have.

https://listman.redhat.com/mailman/listinfo/psyche-list

3777
03-26-03, 07:14 PM
Thanks, just tried it, everything worked great on the main kernels, the only problem is that I still have the old kernel debug versions listed.... such as 2.4.18-18.8.0debug and the rpm -qa command doesn't list the "debug" versions, and the rpm -e command says it can't locate them to remove. Any ides?:confused:

bwkaz
03-26-03, 07:53 PM
Do it manually. :p

Open up either /etc/lilo.conf (if you use lilo; I don't think RH does by default, though) or /boot/grub/menu.lst or /etc/grub/menu.lst or something like that, and delete the -debug kernel's entry.

Then go into /boot and get rid of the kernel image that it was referencing.

Wolfman [TWP]
03-27-03, 05:33 AM
Then do a

rpm -qa kernel*

That will show ALL kernels that were installed. I ended up doing that on my system and found that the pcmcia kernel was installed and I don't use it, due to the system being a desktop, and I don't have PCMCIA devices etc.

Wolf

3777
03-27-03, 05:39 PM
Originally posted by Wolfman [TWP]
Then do a

rpm -qa kernel*

That will show ALL kernels that were installed. I ended up doing that on my system and found that the pcmcia kernel was installed and I don't use it, due to the system being a desktop, and I don't have PCMCIA devices etc.

Wolf

That did great, thanks both of you for replies