Upgrade Kernel

General support questions
Post Reply
jgun98
Posts: 4
Joined: 2009/12/29 04:18:08

Upgrade Kernel

Post by jgun98 » 2019/01/14 10:26:32

Hi All,
I have a strange issue.

Code: Select all

[root@tiger ~]# uname -sr
Linux 4.20.2-1.el7.elrepo.x86_64
[root@tiger ~]# hostnamectl | grep Kernel
            Kernel: Linux 4.20.2-1.el7.elrepo.x86_64
[root@tiger ~]# rpm -q kernel
kernel-3.10.0-957.el7.x86_64
kernel-3.10.0-957.1.3.el7.x86_64
[root@tiger ~]#
New kernel is not listed in rpm -q kernel
I follow instruction in

Code: Select all

https://www.tecmint.com/install-upgrade-kernel-version-in-centos-7/
Cheers,
jgun

stevemowbray
Posts: 415
Joined: 2012/06/26 14:20:47

Re: Upgrade Kernel

Post by stevemowbray » 2019/01/14 11:58:11

Try

Code: Select all

rpm -q kernel-ml
(i.e. the package you installed if you followed the instructions you linked to.)

jgun98
Posts: 4
Joined: 2009/12/29 04:18:08

Re: Upgrade Kernel

Post by jgun98 » 2019/01/14 14:53:30

Hi,
Thanks for the reply.
Is that indicator above mean that I have succeed install new kernel?
The next step I would like to do oldkernel clean up.
I did all that stuff above on development machine.

Code: Select all

# package-cleanup --oldkernels --count=2
Cheers,
jgun

stevemowbray
Posts: 415
Joined: 2012/06/26 14:20:47

Re: Upgrade Kernel

Post by stevemowbray » 2019/01/14 15:29:58

I am unsure whether package-cleanup knows about alternative kernels like kernel-ml. It's safe to try the command anyway as it won't remove the running kernel and will prompt you before it does anything.

jgun98
Posts: 4
Joined: 2009/12/29 04:18:08

Re: Upgrade Kernel

Post by jgun98 » 2019/01/15 01:27:16

Thank steve, anyway you are right trying is the better way to prove the theory.
Thanks a lot.

Post Reply