通過yum刪除多餘內核

192.168.222.129110315

Last login: Tue Nov  3 23:52:15 2015 from 192.168.222.1

[root@localhost ~]# uname -a

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


[root@localhost ~]# 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  #刪除有問題的核

[root@localhost ~]# yum remove kernel-2.6.32-573.7.1.el6.x86_64

已加載插件:fastestmirror

設置移除進程

解決依賴關係

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

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

--> 執行事務檢查

---> Package kernel.x86_64 0:2.6.32-573.7.1.el6 will be 刪除

--> 完成依賴關係計算

依賴關係解決

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

 軟件包                      架構                         版本                                        倉庫                             大小

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

正在刪除:

 kernel                       x86_64                       2.6.32-573.7.1.el6                          installed                       126 M

事務概要

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

Remove        1 Package(s)


Installed size: 126 M

確定嗎?[y/N]:y

下載軟件包:

運行 rpm_check_debug 

執行事務測試

事務測試成功

執行事務

  正在刪除   : 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 

刪除:

  kernel.x86_64 0:2.6.32-573.7.1.el6                                                                                                          

完畢!

[root@localhost ~]# shutdown -r now


Broadcast message from [email protected]

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


The system is going down for reboot NOW!

#重啓後,該內核“ kernel-2.6.32-573.7.1.el6.x86_64 ”被刪除。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章