Linux Learning Notes - yum configuration Ali cloud sources

Enter the directory: 
cd /etc/yum.repos.d
Backup: 
mkdir repobak mv
* .repo repobak /
Download CentOS-Base.repo path to /etc/yum.repos.d/ 

wget -O /etc/yum.repos.d/CentOS-Base.repo HTTP: // mirrors.aliyun.com/repo/Centos-7. repo
Clear cache: 
yum Clean All
Rebuild cache: 
yum makecache

Guess you like

Origin www.cnblogs.com/runt/p/12182371.html