CentOS修改yum源爲Aliyun

阿里雲官網yum源http://mirrors.aliyun.com
選擇適合自己系統的版本
選擇 centos -- 幫助

1、備份系統自帶的yum源 的 base.repo和epel.repo

cd /etc/yum.repos.d
mv  CentOS-Base.repo CentOS-Base.repo.backup
mv epel.repo   epel.repo.bak 

2、下載和自己操作系統版本對應的yum源

[root@ ~]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章