CentOS 7 kernel upgrade, centos kernel upgrade
Take CentOS 7 as an example!
1. view the current kernel version:
[Root @ localhost ~] # Uname-sr
Linux 3.10.0-514.26.2.el7.x86 _ 64
2. view the latest kernel version:
Log onto the https://www.kernel.org to view the latest kernel version, which is currently the latest mainline:4.13-rc5
3. Upgrade the kernel version:
I know two methods to upgrade the kernel version. One is to download the source code package and compile and install it by yourself, and the other is to install it online through yum.
1.> download the source code package on the https://www.kernel.org and then compile and package it locally, because the White will not use this method, the following through step 2.> focuses on the following yum installation method.
2.> online installation through yum,
A.> first download and install the third-party source elrepo:
Log on to http://elrepo.org/tiki/ti?index.php=and download the repods matching the system. Then install
[Root @ localhost files] # rpm-I elrepo-release-7.0-3.el7.elrepo.noarch.rpm
B.> View available kernels:
Enter yum -- disablerepo = "*" -- enablerepo = "elrepo-kernel" list available
[Root @ localhost files] # yum -- disablerepo = "*" -- enablerepo = "elrepo-kernel" list available
Loaded plug-ins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* Elrepo-kernel: df00000000.rackspace.com
Installable software packages
Kernel-lt.x86_64 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-lt-devel.x86_64 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-lt-doc.noarch 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-lt-headers.x86_64 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-lt-tools.x86_64 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-lt-tools-libs.x86_64 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-lt-tools-libs-devel.x86_64 4.4.82-1. el7.elrepo elrepo-kernel
Kernel-ml-doc.noarch 4.12.7-1. el7.elrepo elrepo-kernel
Kernel-ml-headers.x86_64 4.12.7-1. el7.elrepo elrepo-kernel
Kernel-ml-tools.x86_64 4.12.7-1. el7.elrepo elrepo-kernel
Kernel-ml-tools-libs.x86_64 4.12.7-1. el7.elrepo elrepo-kernel
Kernel-ml-tools-libs-devel.x86_64 4.12.7-1. el7.elrepo elrepo-kernel
Perf. x86_64 4.12.7-1. el7.elrepo elrepo-kernel
Python-perf.x86_64 4.12.7-1. el7.elrepo elrepo-kernel
C.> download and install the required kernel:
Upgrade lt (long time support) here
Yum -- enablerepo = elrepo-kernel install kernel-lt
4. Restart and view the new kernel version:
Init 6 --> restart
Uname-sr
Finally, if you need to change the default startup sequence, you can refer to modify grup, which is not described here.
@ Sh hp