配置网络yum源基于centos5.8平台
下载
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
需要替换/etc/yum.repo.d/Centos-Base.repo中
$releasever替换成 5 否则可能会用不了
最后执行
yum clean all
yum makecache
转载于:https://blog.51cto.com/only013/1542470