Centos7更换阿里云yum源
生活随笔
收集整理的這篇文章主要介紹了
Centos7更换阿里云yum源
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
備份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
centos7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
或
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
添加EPEL
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo ?
yum clean all
yum makecache
參考資料
http://mirrors.aliyun.com/help/centos
http://mirrors.aliyun.com/help/epel
總結(jié)
以上是生活随笔為你收集整理的Centos7更换阿里云yum源的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Kubernetes 1.9 发布
- 下一篇: Centos7安装百度云盘