美文网首页
Centos7-配置阿里云yum源和epel源

Centos7-配置阿里云yum源和epel源

作者: 海天启航 | 来源:发表于2020-04-05 10:03 被阅读0次
#配置阿里云yum源
yum install -y wget
cd  /etc/yum.repos.d/
mv  CentOS-Base.repo CentOS-Base.repo.bak
wget  http://mirrors.aliyun.com/repo/Centos-7.repo
mv Centos-7.repo CentOS-Base.repo
#配置epel源
wget https://mirrors.aliyun.com/repo/epel-7.repo
#清除缓存并更新
yum clean all
yum makecache
yum update

https://www.jianshu.com/p/4c05fb9843bf

相关文章

网友评论

      本文标题:Centos7-配置阿里云yum源和epel源

      本文链接:https://www.haomeiwen.com/subject/phiyphtx.html