centos7-内核版本降级

时间:2021-01-10 05:46:19

1. 查看内核版本参考命令:

[root@localhost ~]# cat /etc/redhat-release

CentOS Linux release 7.3.1611 (Core)

[root@localhost ~]# uname -a

Linux localhost.localdomain 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# rpm -qa |grep -i centos-release

centos-release-7-3.1611.el7.centos.x86_64

2. 目的安装下面这个版本内核:

kernel-3.10.0-862.11.6.el7.1.x86_64.rpm

下载地址:https://centos.pkgs.org/7/puias-computational-x86_64/kernel-3.10.0-862.11.6.el7.1.x86_64.rpm.html

centos7-内核版本降级

3. 查看已安装内核版本

[root@localhost boot]# rpm -qa |grep kernel

kernel-3.10.0-514.el7.x86_64

kernel-tools-libs-3.10.0-693.5.2.el7.x86_64

kernel-tools-3.10.0-693.5.2.el7.x86_64

kernel-3.10.0-693.5.2.el7.x86_64

kernel-3.10.0-514.26.2.el7.x86_64

4. 卸载新版本内核

[root@localhost boot]# rpm -e kernel-3.10.0-514.el7.x86_64

5.安装需要的内核版本

rpm -ivh kernel-3.10.0-862.11.6.el7.1.x86_64.rpm