CentOS 7 kernel upgrade, centos kernel upgrade

Source: Internet
Author: User

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

 

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.