CentOS6.X upgrade kernel Kernel

CentOS 6.X upgrades Kernel to facilitate the installation of Docker

Reference: http://elrepo.org/tiki/tiki-index.php

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

For more information about the GPG key used by the ELRepo project, please refer to https://www.elrepo.org/tiki/key If your system has secure boot enabled, please refer to the SecureBootKey page for more information.

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm(external link)
rpm -Uvh http://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm

It should be noted here that there are two kernel options in ELRepo, one is kernel-lt (long-term support version), the other is kernel-ml (the latest version of the mainline), using the long-term support version (kernel-lt), which is more stable

# kernel-lt
yum --enablerepo=elrepo-kernel install kernel-lt -y 
or
# kernel-ml
yum --enablerepo=elrepo-kernel install kernel-ml -y 
vim /etc/grub.conf

According to the location of the kernel after installation, modify the value of default, which is generally modified to 0, because default starts from 0, and generally the newly installed kernel is in the first position, so set default=0

After all operations are completed, restart the host, and execute uname -r after restarting to check the kernel version number

[ root@db-slave ~]# uname -r           
4.14.3- 1. el6.elrepo.x86_64

Recommended Posts

CentOS6.X upgrade kernel Kernel
Centos7 upgrade kernel
CentOS7.5-1804 system kernel upgrade
CentOS6.5 upgrade kernel to 3.10.28
Centos kernel version upgrade
Three methods of Centos kernel upgrade
Linux: Centos7 upgrade the original kernel
Remember a centos 7 kernel upgrade accident
ubuntu16.04 method steps to upgrade the kernel