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?
1
  • 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. Jun 20, 2017 at 17:33

1 Answer 1

8

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
1
  • Also in /etc/yum.conf add to [main] section exclude=kernel* Aug 1, 2019 at 7:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .