Fedora 刪除舊核心27
阿新 • • 發佈:2018-11-29
- 查詢目前已安裝核心資訊:
[[email protected] ~]# rpm -qa | grep kernel
kernel-modules-4.17.3-100.fc27.x86_64
kernel-modules-4.17.3-200.fc28.x86_64
kernel-core-4.14.11-300.fc27.x86_64
kernel-modules-extra-4.17.3-100.fc27.x86_64
kernel-core-4.17.3-200.fc28.x86_64
libreport-plugin-kerneloops-2.9.5-1.fc28.x 86_64
kernel-4.17.3-100.fc27.x86_64
kernel-headers-4.17.3-200.fc28.x86_64
abrt-addon-kerneloops-2.10.10-1.fc28.x86_64
kernel-core-4.17.3-100.fc27.x86_64
kernel-modules-4.14.11-300.fc27.x86_64
kernel-modules-extra-4.14.11-300.fc27.x86_64
kernel-modules-extra-4.17.3-200.fc28.x86_64
kernel-4.14.11-300.fc27.x86_64
kernel-4.17 .3-200.fc28.x86_64
- 查詢當前正在執行的核心:
[root@localhost ~]# uname -r
4.17.3-200.fc28.x86_64
- 刪除舊核心:
[[email protected] ~]# dnf remove kernel-4.14.11-300.fc27.x86_64
Repository fzug-free is listed more than once in the configuration
Repository fzug-free-source is listed more than once in the configuration
Repository fzug-nonfree is listed more than once in the configuration
Repository fzug-nonfree-source is listed more than once in the configuration
Repository fzug-testing is listed more than once in the configuration
依賴關係解決。
================================================================================
軟體包 架構 版本 倉庫 大小
================================================================================
移除:
kernel x86_64 4.14.11-300.fc27 @updates 0
事務概要
================================================================================
移除 1 軟體包
已釋放的空間:0
確定嗎?[y/N]:y
執行事務檢查
事務檢查成功。
執行事務測試
事務測試成功。
執行事務
準備中 : 1/1
刪除 : kernel-4.14.11-300.fc27.x86_64 1/1
執行指令碼: kernel-4.14.11-300.fc27.x86_64 1/1
驗證 : kernel-4.14.11-300.fc27.x86_64 1/1
已移除:
kernel.x86_64 4.14.11-300.fc27
完畢!
[[email protected] ~]#
- 刪除的內容需要小心,防止刪錯。fedora27有很多的內容可以刪除。 再次檢查刪除的內容:
[[email protected] ~]# rpm -qa | grep kernel
kernel-modules-4.17.3-100.fc27.x86_64
kernel-modules-4.17.3-200.fc28.x86_64
kernel-core-4.14.11-300.fc27.x86_64
kernel-modules-extra-4.17.3-100.fc27.x86_64
kernel-core-4.17.3-200.fc28.x86_64
libreport-plugin-kerneloops-2.9.5-1.fc28.x86_64
kernel-4.17.3-100.fc27.x86_64
kernel-headers-4.17.3-200.fc28.x86_64
abrt-addon-kerneloops-2.10.10-1.fc28.x86_64
kernel-core-4.17.3-100.fc27.x86_64
kernel-modules-4.14.11-300.fc27.x86_64
kernel-modules-extra-4.14.11-300.fc27.x86_64
kernel-modules-extra-4.17.3-200.fc28.x86_64
kernel-4.17.3-200.fc28.x86_64
- 在刪除核心核心時,會帶有聯動刪除的功能:
[[email protected] ~]# dnf remove kernel-core-4.17.3-100.fc27.x86_64
Repository fzug-free is listed more than once in the configuration
Repository fzug-free-source is listed more than once in the configuration
Repository fzug-nonfree is listed more than once in the configuration
Repository fzug-nonfree-source is listed more than once in the configuration
Repository fzug-testing is listed more than once in the configuration
依賴關係解決。
================================================================================
軟體包 架構 版本 倉庫 大小
================================================================================
移除:
kernel-core x86_64 4.17.3-100.fc27 @updates 59 M
Removing dependent packages:
kernel x86_64 4.17.3-100.fc27 @updates 0
kernel-modules x86_64 4.17.3-100.fc27 @updates 27 M
kernel-modules-extra x86_64 4.17.3-100.fc27 @updates 2.1 M
事務概要
================================================================================
移除 4 軟體包
已釋放的空間:88 M
確定嗎?[y/N]:y
執行事務檢查
事務檢查成功。
執行事務測試
事務測試成功。
執行事務
準備中 : 1/1
刪除 : kernel-4.17.3-100.fc27.x86_64 1/4
執行指令碼: kernel-4.17.3-100.fc27.x86_64 1/4
刪除 : kernel-modules-extra-4.17.3-100.fc27.x86_64 2/4
執行指令碼: kernel-modules-extra-4.17.3-100.fc27.x86_64 2/4
刪除 : kernel-modules-4.17.3-100.fc27.x86_64 3/4
執行指令碼: kernel-modules-4.17.3-100.fc27.x86_64 3/4
執行指令碼: kernel-core-4.17.3-100.fc27.x86_64 4/4
刪除 : kernel-core-4.17.3-100.fc27.x86_64 4/4
執行指令碼: kernel-core-4.17.3-100.fc27.x86_64 4/4
驗證 : kernel-core-4.17.3-100.fc27.x86_64 1/4
驗證 : kernel-modules-4.17.3-100.fc27.x86_64 2/4
驗證 : kernel-4.17.3-100.fc27.x86_64 3/4
驗證 : kernel-modules-extra-4.17.3-100.fc27.x86_64 4/4
已移除:
kernel-core.x86_64 4.17.3-100.fc27
kernel.x86_64 4.17.3-100.fc27
kernel-modules.x86_64 4.17.3-100.fc27
kernel-modules-extra.x86_64 4.17.3-100.fc27
完畢!
[[email protected] ~]#
6.多次刪除之後,最終結果如下,完全移除了fedora 27 的核心內容。
[[email protected] ~]# dnf remove kernel-core-4.14.11-300.fc27.x86_64
Repository fzug-free is listed more than once in the configuration
Repository fzug-free-source is listed more than once in the configuration
Repository fzug-nonfree is listed more than once in the configuration
Repository fzug-nonfree-source is listed more than once in the configuration
Repository fzug-testing is listed more than once in the configuration
依賴關係解決。
================================================================================
軟體包 架構 版本 倉庫 大小
================================================================================
移除:
kernel-core x86_64 4.14.11-300.fc27 @updates 57 M
Removing dependent packages:
kernel-modules x86_64 4.14.11-300.fc27 @updates 26 M
kernel-modules-extra x86_64 4.14.11-300.fc27 @updates 2.1 M
事務概要
================================================================================
移除 3 軟體包
已釋放的空間:85 M
確定嗎?[y/N]:y
執行事務檢查
事務檢查成功。
執行事務測試
事務測試成功。
執行事務
準備中 : 1/1
刪除 : kernel-modules-extra-4.14.11-300.fc27.x86_64 1/3
執行指令碼: kernel-modules-extra-4.14.11-300.fc27.x86_64 1/3
刪除 : kernel-modules-4.14.11-300.fc27.x86_64 2/3
執行指令碼: kernel-modules-4.14.11-300.fc27.x86_64 2/3
執行指令碼: kernel-core-4.14.11-300.fc27.x86_64 3/3
刪除 : kernel-core-4.14.11-300.fc27.x86_64 3/3
執行指令碼: kernel-core-4.14.11-300.fc27.x86_64 3/3
驗證 : kernel-modules-4.14.11-300.fc27.x86_64 1/3
驗證 : kernel-modules-extra-4.14.11-300.fc27.x86_64 2/3
驗證 : kernel-core-4.14.11-300.fc27.x86_64 3/3
已移除:
kernel-core.x86_64 4.14.11-300.fc27
kernel-modules.x86_64 4.14.11-300.fc27
kernel-modules-extra.x86_64 4.14.11-300.fc27
完畢!
[[email protected] ~]# rpm -qa | grep kernel
kernel-modules-4.17.3-200.fc28.x86_64
kernel-core-4.17.3-200.fc28.x86_64
libreport-plugin-kerneloops-2.9.5-1.fc28.x86_64
kernel-headers-4.17.3-200.fc28.x86_64
abrt-addon-kerneloops-2.10.10-1.fc28.x86_64
kernel-modules-extra-4.17.3-200.fc28.x86_64
kernel-4.17.3-200.fc28.x86_64