原文
https://gitee.com/yeungchie/CentOS6_yum/
https://www.cnblogs.com/yeungchie/
CentOS6 已经停更了,但由于某些原因还得接着用着,找到几个暂时还能用的 yum 源
备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
下载
wget -O /etc/yum.repos.d/CentOS-Base.repo https://gitee.com/yeungchie/CentOS6_yum/raw/master/CentOS6-Base.repo wget -O /etc/yum.repos.d/epel.repo https://gitee.com/yeungchie/CentOS6_yum/raw/master/epel6.repo
更新
yum clean all yum makecache