我服務器32位的
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-3.2.22-40.el5.centos.noarch.rpm
wget http://mirrors.163.com/centos/5/os/i386/CentOS/yum-metadata-parser-1.1.2-4.el5.i386.rpm
安裝 rpm -ivh yum-*
wget http://mirrors.163.com/.help/CentOS-Base-163.repo
mv CentOS-Base-163.repo /etc/yum.repos.d/
cd /etc/yum.repos.d/
vi CentOS-Base-163.repo
把CentOS-Base-163.repo文件中的 “$releasever”,替換成“5”(5為系統的版本號。)
:% s/\$releasever/5/g
yum clean all
yum makecache