CentOS6新的yum源

 

今天配置yum源时发现阿里和163的centos6的yum源都不可用了,因此简单记录下。

cd /etc/yum.repos.d/
备份原文件
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

yum update

posted on 2021-02-20 22:31  jerry1111  阅读(167)  评论(0编辑  收藏  举报

导航