REDHAT YUM 163源
rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5
2.让yum使用网易的源:
cd /etc/yum.repos.d/ wget http://mirrors.163.com/.help/CentOS-Base-163.repo
3.修改repo文件
在所有mirrorlist前面加上#,把所有$releasever替换成5,保存
sed -i '/mirrorlist/d' CentOS-Base-163.repo sed -i 's/\$releasever/5/' CentOS-Base-163.repo
4.清理并重新生成yum缓存
yum clean metadata yum makecache
---------------------------------------------------------------------------------
Kind Regards,
HaiTao Niu
JavaScript developer :)
ORACLE Certified Database Administrator - 10g
SUN Certified Applocation Developer - Java 6
Ring Building,No.28,ZhongGuanCun Software Park, No.8 Dong Bei Wang West Road, Haidian District, Beijing P.R.China 100193
E-mail: 1648500@qq.com
浙公网安备 33010602011771号