Custom title

  • The current environment
  • The problem
  • The solution
    • Download the kernel RPM package
    • Perform the installation
      • Install the kernel
      • The results of
      • Set 957 to boot the kernel

The current environment

CentOS Linux Release 7.2.1511 (Core) Kernel: 3.10.0-327.el7.x86_64

Kernel target version: 3.10.0-957.27.2.el7.x86_64

The problem

Yum install kernel 3.10.0-1062*

The solution

Download the kernel RPM package

URL: buildlogs.centos.org/c7.1810.u.x… Choose to download the following three packages:

  • The kernel – 3.10.0-957.27.2. El7. X86_64. RPM
  • The kernel – the headers – 3.10.0-957.27.2. El7. X86_64. RPM
  • The kernel – devel – 3.10.0-957.27.2. El7. X86_64. RPM

Perform the installation

Install the kernel

Yum localinstall kernel - 3.10.0-957.27.2. El7. X86_64. RPMCopy the code

In this case, you can run the yum install kernel-devel-$(uname -r) kernel-headers-$(uname -r) command to install headers and dependencies. If the installation is successful, you do not need to run the following commands. If the installation fails, perform the following steps.

Yum localinstall kernel-devel-3.10.0-957.27.2.el7.x86_64. RPM yum localinstall kernel-devel-3.10.0-957.27.2.el7.x86_64. RPM The kernel - the headers - 3.10.0-957.27.2. El7. X86_64. RPMCopy the code

The results of

Set 957 to boot the kernel

grub2-set-default CentOS Linux (3.10.0-957.27.2.el7.x86_64) 7 (Core)"
Copy the code