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