遇到错误:
Transaction Check Error:
installing package kernel-2.6.32-504.8.1.el6.x86_64 needs 16MB on the /boot filesystem
Error Summary
-------------
Disk Requirements:
At least 16MB more space needed on the /boot filesystem.
查看一下:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 458G 214G 221G 50% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
/dev/sda1 99M 82M 13M 87% /boot
解决方法:删除旧版的kernel
1. 查看当前使用的kernel
# uname -r
2.6.32-431.1.2.0.1.el6.x86_64
2. 查看系统已安装的kernel:
# rpm -qa | grep kernel
kernel-2.6.32-358.el6.x86_64
abrt-addon-kerneloops-2.0.8-21.el6.centos.x86_64
kernel-devel-2.6.32-358.6.1.el6.x86_64
libreport-plugin-kerneloops-2.0.9-19.el6.centos.x86_64
kernel-2.6.32-358.6.1.el6.x86_64
kernel-devel-2.6.32-431.1.2.0.1.el6.x86_64
dracut-kernel-004-336.el6_5.2.noarch
kernel-firmware-2.6.32-431.1.2.0.1.el6.noarch
kernel-headers-2.6.32-431.1.2.0.1.el6.x86_64
kernel-2.6.32-431.1.2.0.1.el6.x86_64
删除旧kernel:
# yum remove kernel-2.6.32-358.el6.x86_64 kernel-2.6.32-358.6.1.el6.x86_64 kernel-devel-2.6.32-358.6.1.el6.x86_64
再查看/boot 空间:
# df -h | grep boot
/dev/sda1 99M 30M 65M 32% /boot