[Solved]How can I delete the newest Kernel

Issues related to applications and software problems
jimj
Posts: 93
Joined: 2014/10/01 05:34:57

Re: How can I delete the newest Kernel

Post by jimj » 2018/05/25 20:00:44

Hanisch wrote:My question: How can I disable the update-installation for the Kernel kernel-3.10.0-862.3.2.el7.x86_64
In the past I've excluded all kernel updates by editing /etc/yum.repos.d/CentOS-Base.repo and adding an exclude=kernel* line to the end of the [updates] section. I assume this would work for just a specific kernel version if you entered a specific version instead of "kernel*".

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: How can I delete the newest Kernel

Post by Hanisch » 2018/05/26 09:37:29

jimj wrote:
Hanisch wrote:My question: How can I disable the update-installation for the Kernel kernel-3.10.0-862.3.2.el7.x86_64
In the past I've excluded all kernel updates by editing /etc/yum.repos.d/CentOS-Base.repo and adding an exclude=kernel* line to the end of the [updates] section. I assume this would work for just a specific kernel version if you entered a specific version instead of "kernel*".
Sorry, the entry in /etc/yum.repos.d/CentOS-Base.repo

Code: Select all

...
#released updates 
[updates]
...
exclude=kernel*
has no effect.
The kernel-3.10.0-862.el7.x86_64 was installed with next Update again.

The solution is in /etc/yum.conf adding this:

Code: Select all

[main]
...
# Exclude Kernel Updates
exclude=kernel*
...
with regards
Ch. Hanisch

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: [Solved]How can I delete the newest Kernel

Post by TrevorH » 2018/05/26 11:39:57

You would need to exclude it from both base and updates repos since base has the originla -862.el7 and updates has several newer -862.* packages.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

User avatar
toracat
Site Admin
Posts: 7518
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: How can I delete the newest Kernel

Post by toracat » 2018/05/26 14:06:56

Hanisch wrote: The problem is in VirtualBox. With this Kernel there are no GuestAdditions active.

My question: How can I disable the update-installation for the Kernel kernel-3.10.0-862.3.2.el7.x86_64
By not updating the kernel, you will be missing important security fixes. You'd better fix the issue that you are having with GuestAdditions. I have no problem with any recent kernels. Try providing all the details on how it fails. Is your guest running GUI? Or are you trying to install GuestAdditions from the command line?
CentOS Forum FAQ

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: [Solved]How can I delete the newest Kernel

Post by Hanisch » 2018/05/26 14:32:12

TrevorH wrote:You would need to exclude it from both base and updates repos since base has the originla -862.el7 and updates has several newer -862.* packages.
I can't understand that.
Under https://www.thegeekdiary.com/centos-rhe ... l-updates/
only the way with /etc/yum.conf is sufficient.

with regards
Ch. Hanisch

Post Reply