Remove unnecessary boot items from centos

Source: Internet
Author: User

Remove unnecessary boot items from centos
After CentOS is updated, the old kernel is not automatically deleted. Therefore, there are multiple kernel options in the startup options. You can manually use the following command to delete unnecessary kernels:

1. view the current kernel version of the system:

# Uname-

Linux localhost. localdomain 3.10.0-229.20.1.el7.x86 _ 64 #1 SMP Tue Nov 3 19:10:07 UTC 201GNU/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 removekernel-3.10.0-229.14.1.el7

Yum remove kernel-3.10.0-229.el7

4. restart the system
# Reboot
Note: you do not need to manually modify/boot/grub/menu. lst.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.