Centos7 upgrade kernel

Before updating, check the current Centos system kernel version:

# uname -r

3.10.0- 327.10.1. el7.x86_64
  1. First go to Tsinghua's TUNA or USTC's elrepo to download the kernel rpm package suitable for you. Mine is 64-bit, and the address is as follows:

https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/RPMS/

As you can see,

kernel-lt :Linux LTS long-term maintenance version of the kernel, currently 4.4.78
kernel-ml :Linux MainLine mainline version kernel, usually the latest kernel, the current version is 4.12.3
  1. Use wget to download the required rpm package, and then use rpm -ivh xxxx.rpm to install; or you can use it directly

rpm -Uvh URL address of rpm package to install

E.g:

rpm  -Uvh https://mirrors.tuna.tsinghua.edu.cn/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-4.12.3-1.el7.elrepo.x86_64.rpm

(Kernel-*-devel is the header file required by the system, generally used more, it is recommended to install ^_^)

  1. View the default startup sequence
# awk -F\' '$1=="menuentry "{print $2}' /etc/grub2.cfg 

CentOS Linux(4.4.4-1.el7.elrepo.x86_64)7(Core)

CentOS Linux(3.10.0-327.10.1.el7.x86_64)7(Core) 

CentOS Linux(0-rescue-c52097a1078c403da03b8eddeac5080b)7(Core)

The default boot sequence is to start from 0, and the new kernel is inserted from the beginning (currently at 0, while 4.4.4 is at 1), so you need to select 0

# grub2-set-default0
  1. Then reboot to use the new kernel, the following is the kernel version used after the restart:
# uname -r 

4.4.4- 1. el7.elrepo.x86_64
  1. This step can be done or not, delete the old kernel.
# yum remove kernel kernel-headers

So far, you're done. Next time, let's talk about the BBR congestion control algorithm enabled by the Linux kernel above 4.9.

Recommended Posts

Centos7 upgrade kernel
CentOS7.5-1804 system kernel upgrade
CentOS6.5 upgrade kernel to 3.10.28
Centos kernel version upgrade
CentOS7 upgrade python3
Three methods of Centos kernel upgrade
CentOS6.X upgrade kernel Kernel
Centos6.5 openssh upgrade
Remember a centos 7 kernel upgrade accident
centos6.9 rabbitmq 3.6.8 upgrade 3.8.2
Centos 6.4 python 2.6 upgrade to 2.7
Centos 6.4 python 2.6 upgrade to 2.7
Centos kernel compilation configuration
Centos7 delete useless kernel
Centos delete redundant kernel
Centos default python2.6 upgrade to
CentOS upgrade python2 to pyth
CentOS 8 (2)
Debug Kernel Panic in Centos
CentOS 8 (1)
centos6.5: gcc upgrade (5.2.0) process record
How to upgrade CentOS7 to CentOS8 (detailed steps)
Upgrade OpenSSL and OpenSSH under CentOS7
Centos7 upgrade git version control tool
Centos6.7 comes with python upgrade to
Manually upgrade node version under CentOs
Manually upgrade node version under CentOs
centos7 python3.7+vi
Linux kernel compilation and CentOS system installation
CentOS + Jenkins
Centos python3 compile installation and compile gcc upgrade
1.5 Install Centos7
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos 7.5 python3.6
Correspondence between CentOS (RHEL) kernel version and system version
CentOS7 update the latest kernel | RPM directly install the kernel