Linux: Centos7 upgrade the original kernel

Before the update, the kernel version was:

uname -r  
3.10.0- 327.10.1. el7.x86_64

Upgrade method:

1、 Import key

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org  

2、 Install elrepo's yum source

rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm  

3、 Install the kernel

yum --enablerepo=elrepo-kernel install  kernel-ml-devel kernel-ml  

Currently 4.4.4:

==================================================================================
Package architecture version source size
==================================================================================
Installing:
 kernel-ml         x86_64      4.4.4-1.el7.elrepo       elrepo-kernel       38 M
 kernel-ml-devel   x86_64      4.4.4-1.el7.elrepo       elrepo-kernel       10 M

4、 View the default startup sequence

awk -F\' '$1=="menuentry "{print $2}' /etc/grub2.cfg  
CentOS Linux(4.4.4-1.el7.elrepo.x86_64)7(Core)  
CentOS Linux(3.10.0-327.10.1.el7.x86_64)7(Core)  
CentOS Linux(0-rescue-c52097a1078c403da03b8eddeac5080b)7(Core)

The default startup sequence is to start from 0, and the new kernel is inserted from the beginning (the current position is at 0, while 4.4.4 is at 1), so you need to select 0.

grub2-set-default0

Then reboot to use the new kernel, the following is the kernel version used after the restart:

uname -r  
4.4.4- 1. el7.elrepo.x86_64  
yum remove kernel  

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

Recommended Posts

Linux: Centos7 upgrade the original kernel
Centos7 upgrade kernel
CentOS7.5-1804 system kernel upgrade
CentOS6.5 upgrade kernel to 3.10.28
Centos kernel version upgrade
Three methods of Centos kernel upgrade
Remember a centos 7 kernel upgrade accident
Linux kernel compilation and CentOS system installation
CentOS7 upgrade python3
CentOS6.X upgrade kernel Kernel
Centos6.5 openssh upgrade
centos6.9 rabbitmq 3.6.8 upgrade 3.8.2
CentOS7 update the latest kernel | RPM directly install the kernel
Centos7 install docker-18.x original
Linux Network Foundation (CentOS7)
Linux (centos7) build gitlab
Centos 6.4 python 2.6 upgrade to 2.7
Centos 6.4 python 2.6 upgrade to 2.7
Centos kernel compilation configuration
Linux Centos7 install jdk1.8
CentOS (linux) install PostgreSQL
The difference between CentOS and Ubuntu in Linux system
Centos7 install pyenv original
Linux notes (1): CentOS-7 installation
CentOS 7 install Redis 5.0.8 original
Centos7 delete useless kernel
Linux CentOS 7 installation tutorial
Centos delete redundant kernel
Centos7.2 system optimization original
Centos 7 install JDK (Linux install jdk)
Centos 7 install Zabbix 3.4 original
Centos default python2.6 upgrade to
CentOS upgrade python2 to pyth
Know Linux and install CentOS
Linux Centos7 install redis tutorial
Install MySQL 8.0.16 on Linux Centos
3 partitioning tools under CentOS Linux
Install MySQL under Linux (CentOS 7)
CentOS 7 user account configuration original
Linux CentOS 7 virtual machine clone
Debug Kernel Panic in Centos
centos6.5: gcc upgrade (5.2.0) process record
CENTOS7 manually install CEPH original
CentOS 6.8 under linux install mongodb
The difference between CentOS 7 and CentOS 6
CentOS8 Linux 8.0.1905 installation process (illustration)
Linux centos system boot process
First understanding of the difference between centos7 and centos6 (kernel, commands, etc.)