centos7.5 update kernel to 4.18 stable version

Source: Internet
Author: User
Tags systemtap gfortran


centos7.5 Update Kernel to 4.18


Docker's minimum requirement for the Linux kernel version is 3.10. Now that the Linux kernel has been released to 4.18, the company-related CentOS 7 kernel needs to be upgraded for better use of Docker and k8s.


Download Public key
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
Installing Elrepo Repo
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
When the warehouse is enabled, lists the available kernel-related packages:

Query all kernel Packages
rpm -qa|grep kernel
kernel-devel-3.10.0-862.6.3.el7.x86_64
kernel-tools-libs-3.10.0-862.6.3.el7.x86_64
kernel-tools-3.10.0-862.6.3.el7.x86_64
kernel-devel-3.10.0-862.el7.x86_64
abrt-addon-kerneloops-2.1.11-50.el7.centos.x86_64
kernel-3.10.0-862.6.3.el7.x86_64
kernel-headers-3.10.0-862.6.3.el7.x86_64
Delete all old kernel-related packages based on the above query results
yum remove kernel-devel kernel-tools-libs kernel-tools kernel-headers
Uninstalling the above package will be associated with uninstalling the following installation package that needs to be updated and reinstalled. Kernel-devel will be associated with the deletion of Systemtap and Systemtap-devel. Kernel-headers is related to the following.
compat-glibc   x86_64   1:2.12-4.el7.centos
compat-glibc-headers  x86_64   1:2.12-4.el7.centos
gcc x86_64   4.8.5-28.el7_5.1
gcc-c++x86_64   4.8.5-28.el7_5.1
gcc-gfortran   x86_64   4.8.5-28.el7_5.1
glibc-develx86_64   2.17-222.el7
glibc-headers  x86_64   2.17-222.el7
libquadmath-devel  x86_64   4.8.5-28.el7_5.1
libtool x86_64   2.4.2-22.el7_3
systemtap   x86_64   3.2-8.el7_5
systemtap-develx86_64   3.2-8.el7_5
Install the new kernel
yum --enablerepo=elrepo-kernel install -y kernel-ml.x86_64
Install new kernel-related software
yum --disablerepo=\* --enablerepo=elrepo-kernel install -y  kernel-ml-devel kernel-ml-tools kernel-ml-tools-libs kernel-ml-tools-libs-devel kernel-ml-headers
Viewing the default kernel
grub2-editenv list
Set the new kernel as the default Grbu startup item
grub2-set-default 0
Generating the Grub configuration file
grub2-mkconfig -o /etc/grub2.cfgreboot   #Can also be restarted
Delete old kernel
yum remove kernel-3.10.0-862.6.3.el7.x86_64
Installing software that was uninstalled when the old kernel was updated
yum install -y compat-glibc compat-glibc-headers gcc gcc-c++ gcc-gfortran glibc-devel glibc-headers libquadmath-devel libtool systemtap systemtap-devel
Viewing the default kernel
grub2-editenv listsaved_entry=CentOS Linux (4.18.11-1.el7.elrepo.x86_64) 7 (Core)


centos7.5 update kernel to 4.18 stable version


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.