免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2745 | 回复: 0

使用yum把内核升级到Kernel 2.6.0test9 [复制链接]

论坛徽章:
0
发表于 2003-11-08 14:40 |显示全部楼层
如果大家觉得升级内核麻烦和危险的话,可以试试以下方法:

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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP