Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install a higher version of the kernel in centos7

Shulou Source: shulou.com Published: 2022-06-03 04:55:18 10月03日 Update

What this article shares with you is a detailed installation tutorial for centos7 to install a high version of the kernel. I believe most people do not know how to install it. In order to let you learn, I have summarized the following contents. Without saying much, let's read on.

View the current OS version

Cat / etc/centos-release

CentOS Linux release 7.6.1810 (Core)

Install elrepo

Rpm-- import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

Rpm-Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm

List elrepo-kernel-related software packages

[root@localhost / root] # yum-disablerepo= "*"-enablerepo= "elrepo-kernel" list available

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* elrepo-kernel: mirrors.tuna.tsinghua.edu.cn

Available Packages

Elrepo-release.noarch 7. 0-4.el7.elrepo elrepo-kernel

Kernel-lt.x86_64 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-lt-devel.x86_64 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-lt-doc.noarch 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-lt-headers.x86_64 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-lt-tools.x86_64 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-lt-tools-libs.x86_64 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-lt-tools-libs-devel.x86_64 4.4.212-1.el7.elrepo elrepo-kernel

Kernel-ml-doc.noarch 5.5.0-1.el7.elrepo elrepo-kernel

Kernel-ml-headers.x86_64 5.5.0-1.el7.elrepo elrepo-kernel

Kernel-ml-tools.x86_64 5.5.0-1.el7.elrepo elrepo-kernel

Kernel-ml-tools-libs.x86_64 5.5.0-1.el7.elrepo elrepo-kernel

Kernel-ml-tools-libs-devel.x86_64 5.5.0-1.el7.elrepo elrepo-kernel

Perf.x86_64 5.5.0-1.el7.elrepo elrepo-kernel

Python-perf.x86_64 5.5.0-1.el7.elrepo elrepo-kernel

Install the related kernel packages:

Yum-enablerepo=elrepo-kernel install kernel-ml kernel-ml-devel.x86_64

View the current kernel version

[root@localhost / root] # sudo awk-F\'$1mm = "menuentry" {print iTunes + ":" $2}'/ etc/grub2.cfg

0: CentOS Linux (5.5.0-1.el7.elrepo.x86_64) 7 (Core)

1: CentOS Linux (3.10.0-957.27.2.el7.x86_64) 7 (Core)

2: CentOS Linux (3.10.0-862.11.6.el7.x86_64) 7 (Core)

3: CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)

4: CentOS Linux (0-rescue-81b73827307a43799b9968e81edddb2f) 7 (Core)

Set 5.5.0 kernel as the default startup item

Grub2-set-default 0

Grub2-mkconfig-o / boot/grub2/grub.cfg

Restart the system

Reboot

Check again

[root@localhost / root] # uname-r

5.5.0-1.el7.elrepo.x86_64

[root@localhost / root] # uname-a

Linux localhost 5.5.0-1.el7.elrepo.x86_64 # 1 SMP Sun Jan 26 20:12:30 EST 2020 x86 "64 GNU/Linux

After reading this article, have you learned to install a higher version of the kernel in centos7? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.

Tags: Kernel version content more articles again most skills tutorials look systems industry information information channels software software packages channels Zhongan Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn OPPO Reno Shulou Information Huawei Linux