centos-release-5-2.el5.centos.i386.rpm glibc-common-2.5-24.i386.rpm kernel-2.6.18-128.1.6.el5.i686.rpm
centos-release-notes-5.2-2.i386.rpm glibc-devel-2.5-24.i386.rpm kernel-devel-2.6.18-128.1.6.el5.i686.rpm
glibc-2.5-24.i386.rpm glibc-headers-2.5-24.i386.rpm
我用的是中科大的源:
#cd /etc/yum.repo/
#wget http://centos.ustc.edu.cn/CentOS-Base.repo.5
#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.
Error: vixie-cron conflicts with sysklogd < 1.4.1
先安装5.2的kernel
#rpm -Uvh kernel-2.6.18-92.el5.i686.rpm --nodeps
#yum -y upgrade