5

The latest kernel kernel-3.10.0-229.1.2.el7.x86_64 panics at boot on my CentOS 7 box due to a kernel bug.

Since this kernel is the default in GRUB, if I forget to manually change the kernel selection at boot, my machine will crash.

Two questions:

  • How can I remove this latest kernel from my system?
  • How can I prevent it from being installed in the next yum update?
  • FYI for others on centos-7: i had something similar where I couldn't boot to the most recent kernel. so i had to uninstall kernel 3.10.0-514 (the working kernel was 3.10.0-327). this fixed the issue. – Trevor Boyd Smith Jun 20 '17 at 17:33
9

How can I remove this latest kernel from my system?

I was apparently specifying the version incorrectly. This works:

$ sudo yum remove kernel-3.10.0-229.1.2.el7

How can I prevent it from being installed in the next yum update?

To do so manually, use the --exclude option, like so:

$ sudo yum update --exclude=kernel
| improve this answer | |
  • Also in /etc/yum.conf add to [main] section exclude=kernel* – Stuart Cardall Aug 1 '19 at 7:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.