当前位置: 移动技术网 > 科技>操作系统>Linux > Centos 7配置阿里云yum源

Centos 7配置阿里云yum源

2019年06月06日  | 移动技术网科技  | 我要评论

城市壁纸,郭依伦雅,windows安全警报怎么关闭

1. 禁用 yum插件 fastestmirror

1)修改插件的配置文件

# cp /etc/yum/pluginconf.d/fastestmirror.conf /etc/yum/pluginconf.d/fastestmirror.conf.bak 

# vi  /etc/yum/pluginconf.d/fastestmirror.conf  

enabled = 1//由1改为0,禁用该插件

2)修改yum的配置文件

# cp /etc/yum.conf /etc/yum.conf.bak

# vi /etc/yum.conf

plugins=1//改为0,不使用插件

2. 获取阿里云 repo

cp /etc/yum.repos.d/centos-base.repo /etc/yum.repos.d/centos-base.repo.bak

wget -o /etc/yum.repos.d/centos-base.repo http://mirrors.aliyun.com/repo/centos-7.repo

cp /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.bak
wget -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

3. 

yum clean all

yum makecache

完工。

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网