我用的是中科大的源:
#cd /etc/yum.repo/
#wget [url]http://centos.ustc.edu.cn/CentOS-Base.repo.5[/url]
#mv CentOS-Base.repo.5 CentOS-Base.repo
2)#rpm -qa | grep kernel
#rpm -e --nodeps --justdb kernel-xxx(就是刚才搜出来的老版本的kernel)
3)#yum -y upgrade
报错:
Error: Missing Dependency: libttf.so.2 is needed by package bg5ps
Error: Missing Dependency: libttf.so.2 is needed by package VFlib2
.................
先移除这些软件包:
#yum remove VFlib2 linuxwacom bg5ps initscripts xinitrc xorg-x11 lksctp-tools hal kudzu
在继续:
#yum -y upgrade
还是有报错:
Error: Package hal needs kernel < 2.6.17, this is not available.
Error: Package initscripts needs kernel < 2.6.12, this is not available.
Error: Package lksctp-tools needs kernel < 2.6.10, this is not available.
Error: Package kudzu needs kernel < 2.6.13, this is not available.
Error: Package autofs needs kernel < 2.6.17, this is not available.
先安装5.2的kernel
#wget [url]http://mirror.centos.org/centos/5/os/i386/CentOS/kernel-2.6.18-92.el5.i686.rpm[/url]
#rpm -Uvh kernel-2.6.18-92.el5.i686.rpm --nodeps
#yum -y upgrade