fedora核心更新(安裝及卸載)

來源:互聯網
上載者:User


在安裝一個新的fedora發行版本後,可以選擇升級所有的軟體,也可以只升級下fedora編譯過的核心包,在測試完新的核心後,再把舊的核心包卸載掉,節約空間。這裡只探討fedora的自動線上升級方式,沒有使用手動的方式,也即意味著會自動搞定vmlinuz,initrd.img,system.map 等檔案的位置,以及Grub的設定檔/etc/grub/grub.conf的修改。 一、升級fedora的核心  a.查看目前核心版本  [qkshan /boot]$uname -r 2.6.29.4-167.fc11.i686.PAE  b.查看最新可用 的核心  [qkshan /]$sudo yum list kernel Loaded plugins: axelget, fastestmirror, presto, refresh-packagekit Loading mirror speeds from cached hostfile * fedora: mirrors.163.com  www.2cto.com  * rpmfusion-free: fr2.rpmfind.net * rpmfusion-free-updates: fr2.rpmfind.net * rpmfusion-nonfree: fr2.rpmfind.net * rpmfusion-nonfree-updates: fr2.rpmfind.net * updates: ftp.mirror.tw Available Packages kernel.i586    2.6.30.9-96.fc11          updates  c.安裝新核心  [qkshan /]$sudo yum install kernel.i586  註:不會覆蓋原來 的核心的,即使是update也不會  二、卸載fedora的舊核心        當更新核心包後或安裝的新核心有問題,我們需要卸載掉該核心, 首先查看已安裝kernel相關包:  [qkshan /boot]$sudo rpm -qa |grep kernel kernel-firmware-2.6.30.8-64.fc11.noarch kernel-PAE-devel-2.6.30.8-64.fc11.i686 kerneloops-0.12-5.fc11.i586 kernel-PAE-2.6.29.4-167.fc11.i686 kernel-headers-2.6.30.8-64.fc11.i586 kernel-PAE-2.6.30.8-64.fc11.i686  當檢驗新安裝的核心沒有問題後,把舊的核心包卸掉: [qkshan /boot]$sudo rpm -qa |grep kernel |grep 167 kernel-PAE-2.6.29.4-167.fc11.i686 [qkshan /boot]$sudo yum remove kernel-PAE-2.6.29.4-167.fc11.i686  另外,如果在更新系統時不想更新kernel相關包, 在 /etc/yum.conf中增加紅色的一行: $ sudo vi /etc/yum.conf [main]   www.2cto.com  cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=3 exclude=kernel*  試下update,可以發現沒有再提示有關kernel*的包升級了哈  [qkshan /]$sudo yum update Loaded plugins: axelget, fastestmirror, presto, refresh-packagekit Loading mirror speeds from cached hostfile fedora/metalink                                                           | 9.8 kB     00:00     updates/metalink                                                          | 8.6 kB     00:00     * fedora: mirrors.163.com * rpmfusion-free: fr2.rpmfind.net * rpmfusion-free-updates: fr2.rpmfind.net * rpmfusion-nonfree: fr2.rpmfind.net * rpmfusion-nonfree-updates: fr2.rpmfind.net * updates: ftp.mirror.tw adobe-linux-i386                                                          |  951 B     00:00     rpmfusion-free                                                            | 3.3 kB     00:00     rpmfusion-free-updates                                                    | 3.8 kB     00:00     rpmfusion-nonfree                                                         | 3.3 kB     00:00     rpmfusion-nonfree-updates                                                 | 3.8 kB     00:00     Setting up Update Process No Packages marked for Update     作者 Sharpleo

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.