Home > System Tutorial > LINUX > body text

How to delete redundant boot entries in CentOS

PHPz
Release: 2024-01-03 23:58:13
forward
1000 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template