Remove excess kernels from yum

Source: Internet
Author: User

192.168.222.129110315

Last Login:tue Nov 3 23:52:15 from 192.168.222.1

[Email protected] ~]# uname-a

Linux localhost.localdomain 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 15:44:03 UTC x86_64 x86_64 x86_64 gnu/linux


[Email protected] ~]# Rpm-qa|grep kernel

Kernel-firmware-2.6.32-573.el6.noarch

Dracut-kernel-004-388.el6.noarch

Kernel-firmware-2.6.32-573.7.1.el6.noarch

Kernel-2.6.32-573.el6.x86_64

Kernel-2.6.32-573.7.1.el6.x86_64 #删除有问题的核

[email protected] ~]# Yum Remove kernel-2.6.32-573.7.1.el6.x86_64

Loaded plugins: Fastestmirror

Set the removal process

Resolving dependencies

There is unfinished transactions remaining. You might consider running Yum-complete-transaction first to finish them.

The program yum-complete-transaction are found in the Yum-utils package.

--Perform a transaction check

---> Package kernel.x86_64 0:2.6.32-573.7.1.el6 would be deleted

Complete dependency Calculation

Dependency resolution

=============================================================================================================== ==============================

Package Schema version Warehouse Size

=============================================================================================================== ==============================

Being removed:

Kernel x86_64 2.6.32-573.7.1.el6 installed 126 M

Transaction summary

=============================================================================================================== ==============================

Remove 1 package (s)


Installed size:126 M

Are you sure? [Y/n]:y

Download the package:

Run Rpm_check_debug

Performing a transaction test

Transaction Test succeeded

Execution transactions

Deleting: kernel-2.6.32-573.7.1.el6.x86_64 1/1

Verifying:kernel-2.6.32-573.7.1.el6.x86_64 1/1

Delete:

Kernel.x86_64 0:2.6.32-573.7.1.el6

Complete!

[Email protected] ~]# Shutdown-r now


Broadcast message from [email protected]

(/dev/pts/0) at 23:56 ...


The system is going down for reboot now!

#重启后, the kernel "kernel-2.6.32-573.7.1.el6.x86_64" is deleted.

This article is from the "linux~dba~mba~edu" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1709179

Remove excess kernels from yum

Related Article

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.