How To Delete A Trashed Kernel

Home » CentOS » How To Delete A Trashed Kernel
CentOS 2 Comments

I have a screwed up disk arrangement, but I have had no trouble because of it after using it over a year. Recently I did a yum update. After starting the update, which included a new kernel, it seemed to either freeze or loop. It was a long time at the  prompt and I got impatient and did a Ctrl C. I then tried to re-boot. The result was a kernel panic. I am keeping 5 kernels and when I select  the second kernel it boots OK. Now I would like to remove the bad kernel. One other thing that I don’t understand and may be relevant, the name of the bad package is        kernel-2.6.32-504.3.3.el6.CentOS-plus.i386
I have never noticed a “CentOS-plus” in a kernel name before. Does the CentOS-plus repo deal out kernels?I have tried yum remove and “gpk application” (add and remove software) with no luck.I have tried google, but all the solutions for kernel deletions were to delete old kernels. I don’t want to do that because I would be deleting my backups. I am in no hurry because I can still boot and it is possible that if I can wait through several kernel updates yum might delete the bad one after an update. I should have mentioned that I am using grub2 to boot, although I don’t think that has anything to do with deleting the kernel package.I would appreciate any advice (except “go back to windows”)

2 thoughts on - How To Delete A Trashed Kernel

  • Message: 8

    The only thing that makes this tricky is that you can?t just say ?rpm -e kernel? because there is more than one ?kernel? package installed.  You need to know the exact package name.



     I had some books on Unix when I started with Slackware. I downloaded it over Ftp from MIT, I believe it was Slackware 0.8. (maybe 1.0). It came on about 25 floppy disks and (with a 300baud modem) I could only do about two a night. I believe I got in trouble this time while building a CentOS7 partition. I had some problems getting the music to play and I went back and forth between CentOS6 and CentOS7 to see what packages I need (CentOS6 was working fine). I think my initial problem was that Rpmforge doesn’t have CentOS7. Thanks for the help. CentOS6 and CentOS7 are now working fine (except 7 only boots about every other try- which I am still working on – I think the bios boot my Hard drives in somewhat random order and I haven’t been able to come up with the proper system map — or it may be a mixup with two SATA drives and an IDE. Pulling the power plug on the IDE drive fixes it.) I will go back to lurking.