拽拽
管理员组

CentOS6新的yum源

今天在升级openssh时,配置yum源时发现阿里和163的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


#1楼
发帖时间:2021-12-5   |   查看数:0   |   回复数:0
游客组