歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux綜合 >> Linux資訊 >> 更多Linux >> 使用yum把內核升級到Kernel 2.6.0test9

使用yum把內核升級到Kernel 2.6.0test9

日期:2017/2/27 14:29:21   编辑:更多Linux
  如果大家覺得升級內核麻煩和危險的話,可以試試以下方法: 1 首先安裝 yum 下載yum http://www.Linux.duke.edu/projects/yum/download/2.0/yum-2.0.4-1.noarch.rpm 並安裝 rpm -ivh yum-2.0.4-1.noarch.rpm 2 修改 /etc/yum.conf,加入如下幾行: ------------------------------------------------------------ [2.6testkernels] name=Test Linux 2.6-test prerelease kernels for RHL9/rawhide baseurl=http://people.redhat.com/arjanv/2.5/ [os] name=Red Hat Linux Rawhide - $basearch - os baseurl=http://ayo.freshrpms.net/redhat/rawhide/$basearch/os [freshrpms] name=Red Hat Linux 9 - $basearch - freshrpms baseurl=http://ayo.freshrpms.net/redhat/9/$basearch/freshrpms ------------------------------------------------------------ 第一項中包含已經編譯好的 2.6.0 test 9的RPM和依賴的幾個包,後兩個包含一些很小的包,其中有一個最新的oprofile是核心升級需要的。 3 運行 yum update yum upgrade kernel 運行結束後就可以了。 如果你 ls /boot ,你會發現多了幾個文件: initrd-2.6.0-0.test9.img config-2.6.0-0.test9 System.map-2.6.0-0.test9 vmlinuz-2.6.0-0.test9 vmlinux-2.6.0-0.test9 同時,/etc/grub.conf也多了點東西: default=0 timeout=10 splashimage=(hd0,6)/grub/splash.XPm.gz title Red Hat Linux (2.6.0-0.test9) root (hd0,6) kernel /vmlinuz-2.6.0-0.test9 ro root=LABEL=/1 initrd /initrd-2.6.0-0.test9.img title Red Hat Linux (2.4.20-20.9) root (hd0,6) kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/1 initrd /initrd-2.4.20-20.9.img title Windows Server 2003 rootnoverify (hd0,0) chainloader +1 增加了一個2.6核心的起動選項。 reboot




Copyright © Linux教程網 All Rights Reserved