Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1318840
  • 博文数量: 177
  • 博客积分: 3640
  • 博客等级: 中校
  • 技术积分: 1778
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-27 16:51
文章分类

全部博文(177)

文章存档

2014年(1)

2013年(10)

2012年(3)

2011年(163)

分类: LINUX

2011-05-07 20:02:03

1 首先安装 yum 
下载yum 

并安装
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=

[os]
name=Red Hat Linux Rawhide - $basearch - os
baseurl=

[freshrpms]
name=Red Hat Linux 9 - $basearch - freshrpms
baseurl=
------------------------------------------------------------

第一项中包含已经编译好的 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 
阅读(6266) | 评论(0) | 转发(1) |
0

上一篇:make

下一篇:编译和安装linux内核2.6.24

给主人留下些什么吧!~~