备份当前yum源
mv /etc/yum.repos.d /etc/yum.repos.d.backup4comex
新建yum源设置目录
mkdir /etc/yum.repos.d
设置阿里yum镜像
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
重建缓存
yum clean all
yum makecache
mv /etc/yum.repos.d /etc/yum.repos.d.backup4comex
mkdir /etc/yum.repos.d
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
yum clean all
yum makecache
本文标题:centOs6.9修改yum源为国内镜像
本文链接:https://www.haomeiwen.com/subject/rzrsmftx.html
网友评论