yum does not update kernel

General support questions
Post Reply
B_R_H
Posts: 11
Joined: 2020/09/06 12:06:58

yum does not update kernel

Post by B_R_H » 2021/01/10 16:38:06

One of mine centos7 servers won't update kernel, even it's seem to be available.
I cannot find any reson on yum setting which disabling it.

Currently running:

Code: Select all

uname -r
3.10.0-1062.4.2.vz7.116.7
What's available:

Code: Select all

yum list available | grep kernel
kernel.x86_64                             3.10.0-1160.11.1.el7           updates
kernel-headers.i686                       3.10.0-1160.el7                updates
kernel-tools.x86_64                       3.10.0-1160.11.1.el7           updates
kernel-tools-libs.x86_64                  3.10.0-1160.11.1.el7           updates
kernel-tools-libs-devel.x86_64            3.10.0-1160.11.1.el7           updates
update cannot find anything:

Code: Select all

yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.funet.fi
 * epel: mirror.cspacehostings.com
 * extras: ftp.funet.fi
 * updates: ftp.funet.fi
No packages marked for update
Os version:

Code: Select all

CentOS Linux release 7.9.2009 (Core)
Derived from Red Hat Enterprise Linux 7.9 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"

User avatar
jlehtone
Posts: 4533
Joined: 2007/12/11 08:17:33
Location: Finland

Re: yum does not update kernel

Post by jlehtone » 2021/01/10 18:47:53

Elementary check: what packages do you have already?

Code: Select all

rpm -q kernel
Note also that "3.10.0-1062.4.2.vz7.116.7" is not a CentOS kernel.

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

Re: yum does not update kernel

Post by TrevorH » 2021/01/11 18:28:22

That's going to be an openvz system not a CentOS one. Your hoster has probably excluded a lot of packages including the kernel via an exclude= /etc/yum.conf and you should not attempt to override that but rather, ask them what you shoud do.
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

B_R_H
Posts: 11
Joined: 2020/09/06 12:06:58

Re: yum does not update kernel

Post by B_R_H » 2021/01/11 18:30:45

Thank's, This is maybe Jelastic vps and it's kernel - I haven't noticed it before.

Code: Select all

rpm -q kernel
package kernel is not installed

Post Reply