fedora 清除舊內核

Fedora清除舊內核,方法如下:

1. 查看當前系統中已安裝的內核相關包:
[iceting@localhost ~]$ rpm -qa |grep kernel
abrt-addon-kerneloops-2.2.0-1.fc20.x86_64
kernel-headers-3.13.10-200.fc20.x86_64
libreport-plugin-kerneloops-2.2.1-1.fc20.x86_64
kernel-debug-devel-3.13.10-200.fc20.x86_64
kernel-3.13.10-200.fc20.x86_64
kernel-modules-extra-3.11.10-301.fc20.x86_64
kernel-modules-extra-3.13.10-200.fc20.x86_64
kernel-3.11.10-301.fc20.x86_64

2.查看當前系統內核
[iceting@localhost ~]$ sudo uname -r
3.13.10-200.fc20.x86_64

3. 確定要刪除的內核:
這裏爲:kernel-3.11.10-301.fc20.x86_64

4. 刪除內核:
[iceting@localhost ~]$ sudo yum remove kernel-3.11.10-301.fc20.x86_64
已加載插件:langpacks, refresh-packagekit
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository updates-debuginfo is listed more than once in the configuration
Repository updates-source is listed more than once in the configuration
Repository fedora is listed more than once in the configuration
Repository fedora-debuginfo is listed more than once in the configuration
Repository fedora-source is listed more than once in the configuration
正在解決依賴關係
--> 正在檢查事務
---> 軟件包 kernel.x86_64.0.3.11.10-301.fc20 將被 刪除
--> 正在處理依賴關係 kernel-uname-r = 3.11.10-301.fc20.x86_64,它被軟件包 kernel-modules-extra-3.11.10-301.fc20.x86_64 需要
--> 正在檢查事務
---> 軟件包 kernel-modules-extra.x86_64.0.3.11.10-301.fc20 將被 刪除
--> 解決依賴關係完成

依賴關係解決

================================================================================
Package                  架構       版本                   源             大小
================================================================================
正在刪除:
kernel                   x86_64     3.11.10-301.fc20       @anaconda     128 M
爲依賴而移除:
kernel-modules-extra     x86_64     3.11.10-301.fc20       @anaconda     8.1 M

事務概要
================================================================================
移除  1 軟件包 (+1 依賴軟件包)

安裝大小:136 M
是否繼續?[y/N]:y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
 正在刪除    : kernel-modules-extra-3.11.10-301.fc20.x86_64                1/2
 正在刪除    : kernel-3.11.10-301.fc20.x86_64                              2/2
 驗證中      : kernel-modules-extra-3.11.10-301.fc20.x86_64                1/2
 驗證中      : kernel-3.11.10-301.fc20.x86_64                              2/2

刪除:
 kernel.x86_64 0:3.11.10-301.fc20                                              

作爲依賴被刪除:
 kernel-modules-extra.x86_64 0:3.11.10-301.fc20                                

完畢!
[iceting@localhost ~]$

沒有直接使用: rpm -e 的方法刪除內核包, 而是使用 yum remove 進行刪除,
因爲使用yum remove刪除, yum 會自動移除 : /boot/grub/menu.lst 中的相關啓動項。


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