CentOS7 update the latest kernel | RPM directly install the kernel

The solution to solve the problem that CenOS7 cannot directly upgrade the kernel,

[ root@xx ]# yum --enablerepo=elrepo-kernel install kernel-lt -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * elrepo: lon.mirror.rackspace.com
 * elrepo-kernel: lon.mirror.rackspace.com
No package kernel-lt available.
Error: Nothing to do

CentOS7 update the latest kernel##

Kernel download address: https://elrepo.org/linux/kernel/el7/x86_64/RPMS/

Kernel selection##

kernel-lt (lt=long-term) is valid for a long time

kernel-ml (ml=mainline) mainstream version

Installation process##

1. Download the kernel###

wget https://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-5.2.4-1.el7.elrepo.x86_64.rpm

2. Install the kernel###

rpm -ivh kernel-ml-5.2.4-1.el7.elrepo.x86_64.rpm

3. View the current default kernel###

# grub2-editenv list
saved_entry=CentOS Linux(3.10.0-327.28.3.el7.x86_64)7(Core)

4. View all kernel boot grub2

# awk -F \' '$1=="menuentry "{print i++" : " $2}' /etc/grub2.cfg 
0: CentOS Linux(5.2.4-1.el7.elrepo.x86_64)7(Core)1: CentOS Linux(3.10.0-327.28.3.el7.x86_64)7(Core)2: CentOS Linux(3.10.0-327.22.2.el7.x86_64)7(Core)3: CentOS Linux(3.10.0-327.13.1.el7.x86_64)7(Core)4: CentOS Linux,with Linux 0-rescue-cd8c4444947b4b0b818457f51ded6591

5. Modified to the latest kernel startup###

grub2-set-default'CentOS Linux (5.2.4-1.el7.elrepo.x86_64) 7 (Core)'

6. Check the kernel again###

# grub2-editenv list
saved_entry=CentOS Linux(5.2.4-1.el7.elrepo.x86_64)7(Core)

7. Restart###

reboot

Update kernel-ml-headers

wget http://ftp.osuosl.org/pub/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-headers-5.2.4-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-headers-5.2.4-1.el7.elrepo.x86_64.rpm

Update kernel-ml-devel

http://ftp.osuosl.org/pub/elrepo/kernel/el7/x86_64/RPMS/kernel-ml-devel-5.2.4-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-devel-5.2.4-1.el7.elrepo.x86_64.rpm

( adsbygoogle = window.adsbygoogle || []).push({});

Recommended Posts

CentOS7 update the latest kernel | RPM directly install the kernel
Install the latest OpenCV4.3 under Centos8
Centos install the latest version of cmake
Ubuntu install the latest Python 3.
Centos7.6 install MySQL+Redis (latest version)
Install JDK8 in rpm on CentOS7
Linux: Centos7 upgrade the original kernel
The latest Centos7 installation Mysql8 guide
Install the latest Python 3.6 version on Ubuntu
1.5 Install Centos7
VMware Fusion install CentOS7 and configure the network
CentOS Discovery Road 2---Use rpm to install JDK
Solve the problem that Centos8 cannot install docker
Linux (CentOS7) using RPM to install mysql 8.0.11 tutorial
The easiest way to install Chrome on CentOS 6
The actual combat of rpm packaging under CentOS6
How to install the latest MySQL on Ubuntu 18.04
Centos7.3 install nginx
[Video] Teach you how to install the latest Linux version of QQ under Centos 8
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
Vmware install CentOS6
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
CentOS 6/7 update curl
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
Centos7 upgrade kernel
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8