CentOS6可用yum源

阿里和163的centos6的yum源都不可用了

找到一个CentOS6可用的yum源

cd /etc/yum.repos.d/
mkdir bak
mv * bak/
curl -o /etc/yum.repos.d/CentOS-Base.repo http://file.kangle.odata.cc/repo/Centos-6.repo
curl -o /etc/yum.repos.d/epel.repo http://file.kangle.odata.cc/repo/epel-6.repo
yum clean all
yum makecache

 
posted @ 2021-09-10 12:11  树静风停  阅读(610)  评论(0)    收藏  举报