After centos update, the old kernel will not be deleted automatically.So there will be multiple kernel options in the boot options,You can manually remove extra kernels with the following command:

There are multiple ways to update.This time with the network,Perform yum installation

The command line is simple

yum update

Then y ,,,,

After the update, if you restart directly, you will find thatA few more startup items,So how do you remove these extra kernels?Or the old unused kernel?

1.Check the currently running kernel version

uname -a

2.View all kernels in the system

rpm -q kernel

3. delete old kernel:

yum remove kernel-3.xxxxx.el7yum remove kernel-d. . . . . .el7

These removed are redundant kernels

4, reboot:


Found redundant kernel boot has been removed

Attach detailed steps of other friends

1.Check the current kernel version of the system:#uname -alinux localhost.localdomain 3.10.0-229.20.1.el7.x86_64 #1 smp tue nov 3 19:10:07 utc 201gnu/linux2.View all kernel rpm packages in the system:#rpm -qa | grep kernelkernel-3.10.0-229.14.1.el7.x86_64kernel-3.10.0-229.el7.x86_64abrt-addon-kerneloops-2.1.11-22.el7.centos.0.1.x86_64kernel-tools-libs-3.10.0-229.20.1.el7.x86_64kernel-3.10.0-229.20.1.el7.x86_64kernel-tools-3.10.0-229.20.1.el7.x86_643. Delete the rpm package of the old kernelyum remove kernel-3.10.0-229.14.1.el7yum remove kernel-3.10.0-229.el74. Restart the system#rebootNote:No need to manually modify /boot/grub/menu.lst

  • Previous C ++ Design Patterns (Composite)
  • Next C ++ design pattern template method (TemplateMethod)