当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 使用yum把内核升级到Kernel 2.6.0test9

Unix/Linux
Linux创建ADSL拨号上网方法
LINUX环境中配置WU-FTP服务器
Linux系统有效防御ARP攻击
linux sybase 安装全过程(写给初学者)
Sybase ASE数据库的常见问题解答
Linux中让进程在后台运行的方法
linux系统维护常见错误记录
CentOS支持reiserFS的设置方法
linux下安装Zend Optimizer的方法
linux内容批量替换的命令
linux vmstat输出方法解析
Smplayer播放wmv和avi的文件有箭头的问题解决方法
RHEL5 centos安装中文支持
linux构建动态WEB服务器安装篇
linux构建动态WEB服务器配置篇
Apache服务器优化方法小结
apache中并发控制参数prefork理解和调优
Gzip在apache2中的设置和squid对它的处理方法分析
apache Rewrite防盗链设置方法
linux下svn命令大全

Unix/Linux 中的 使用yum把内核升级到Kernel 2.6.0test9


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 85 ::
收藏到网摘: n/a


如果大家觉得升级内核麻烦和危险的话,可以试试以下方法:
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