/boot磁盘空间不足,没盘扩展,只好删除旧内核了

[xiejdm@localhost ~]$ uname -r
3.10.0-229.11.1.el7.x86_64
[xiejdm@localhost ~]$ sudo rpm -qa | grep kernel
kernel-tools-libs-3.10.0-229.11.1.el7.x86_64
kernel-3.10.0-229.el7.x86_64
kernel-headers-3.10.0-229.11.1.el7.x86_64
kernel-tools-3.10.0-229.11.1.el7.x86_64
kernel-3.10.0-229.11.1.el7.x86_64
abrt-addon-kerneloops-2.1.11-22.el7.centos.0.1.x86_64
kernel-3.10.0-229.7.2.el7.x86_64
[xiejdm@localhost ~]$ sudo yum remove kernel-3.10.0-229.7.2.el7.x86_64

重要命令已加粗!

原文地址:https://www.cnblogs.com/Richard-xie/p/4813461.html