CentOS7 使用阿里云的yum源

#备份

 cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak 

#更换yum为阿里云 

cd etc/yum.repos.d/

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 

#安装EPEL源

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

#更新

sudo yum clean all  

sudo yum makecache  

转载地址:http://www.up123.cc/9.html

猜你喜欢

转载自886.iteye.com/blog/2322630
今日推荐