centos yum source to replace Ali

Disclaimer: This article is copyrighted final HrainOne all, welcome to reprint, please declare final copyright https://blog.csdn.net/gaoxin_gx/article/details/90274074

Step One: Download wget
yum -y install wget
second step: a backup of the default wget
mv /etc/yum.repos.d /etc/yum.repos.d.backup
Step 3: Set at the directory new yum
mkdir /etc/yum.repos.d
Step Four: Download Ali Configuration
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
Step five: Re-establish cache
yum clean all
yum makecache
Step Six: upgrade all packages
yum update -ytime than long wait.

Guess you like

Origin blog.csdn.net/gaoxin_gx/article/details/90274074