After CentOS is updated, the old kernel will not be automatically deleted. Therefore, there will be multiple kernel options in the boot options. You can manually delete the redundant kernels using the following command:
1. Check the current kernel version of the system:
# uname -a
Linux localhost.localdomain 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 201 GNU/Linux
2. View all kernel RPM packages in the system:
# rpm -qa | grep kernel
kernel-3.10.0-229.14.1.el7.x86_64
kernel-3.10.0-229.el7.x86_64
abrt-addon-kerneloops-2.1.11-22.el7.centos.0.1.x86_64
kernel-tools-libs-3.10.0-229.20.1.el7.x86_64
kernel-3.10.0-229.20.1.el7.x86_64
kernel-tools-3.10.0-229.20.1.el7.x86_64
3. Delete the RPM package of the old kernel
yum remove kernel-3.10.0-229.14.1.el7
yum remove kernel-3.10.0-229.el7
4. Restart the system
# reboot
Note: No need to manually modify /boot/grub/menu.lst
The above is the detailed content of How to delete redundant boot entries in CentOS. For more information, please follow other related articles on the PHP Chinese website!