Page 1 of 1

yum does not update kernel

Posted: 2021/01/10 16:38:06
by B_R_H
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"

Re: yum does not update kernel

Posted: 2021/01/10 18:47:53
by jlehtone
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.

Re: yum does not update kernel

Posted: 2021/01/11 18:28:22
by TrevorH
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.

Re: yum does not update kernel

Posted: 2021/01/11 18:30:45
by B_R_H
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