(1)查询正在使用的内核 :
uname -a

[root@VM-4-7-centos ~]# uname -a
Linux VM-4-7-centos 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@VM-4-7-centos ~]#

(2)查询系统中全部的内核
rpm -q kernel

[root@VM-4-7-centos ~]# rpm -q kernel
kernel-3.10.0-1062.18.1.el7.x86_64
kernel-3.10.0-1127.19.1.el7.x86_64

(3)删除多余的内核
yum remove kernel-3.10.0-1062.18.1.el7.x86_64

标签: none

添加新评论