from https://blog.csdn.net/skykingf/article/details/51944522
uname -a
Linux localhost.localdomain 3.10.0-327.22.2.el7.x86_64 #1 SMP Thu Jun 23 17:05:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
2.查询系统中全部的内核:
rpm -qa | grep kernel
abrt-addon-kerneloops-2.1.11-36.el7.centos.x86_64
kernel-tools-libs-3.10.0-327.22.2.el7.x86_64
kernel-3.10.0-327.22.2.el7.x86_64
kernel-3.10.0-327.el7.x86_64
kernel-tools-3.10.0-327.22.2.el7.x86_64
3.删除旧的内核
yum remove kernel-3.10.0-327.el7.x86_64
4.重启后就可以看到多余的启动项也自动被删掉了