CentOS-7 configuration Ali YUM source

Ali cloud YUM source configuration:
1, the backup /etc/yum.repo.d/ #cd
#mkdir Repos
#mv * .repo Repos
2, download #wget wget -O /etc/yum.repos.d/CentOS-Base. repo http://mirrors.aliyun.com/repo/Centos-7.repo

3, # yum epel-release.noarch installed by epel -Y extended source the install
. 4, after generating the cache operation yum makecache

Guess you like

Origin blog.51cto.com/12886496/2415446