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://files.cnblogs.com/files/yeungchie/CentOS6-Base.repo.sh
wget -O /etc/yum.repos.d/epel.repo https://files.cnblogs.com/files/yeungchie/epel6.repo.sh
更新
yum clean all
yum makecache