CentOS7 configure yum source cloud Ali, it is very simple

1. Go to the file folder yum

Command: cd /etc/yum.repos.d/

 

 

 2. Download wget

Command: yum -y install wget

 

 

 3. Delete all yum yum source folder

Command: rm -rf /etc/yum.repos.d/*.repo

 

 

 4. Use wget to download Ali cloud repo file

Command: wget http://mirrors.aliyun.com/repo/Centos-7.repo

 

 

 The update command execution source yum

Command: yum clean all

Command: yum makecache

Note: Perform

 

 6. Look at how many packages yum warehouse

Command: yum repolist

 

Summary: According to your own needs. . . . . . .

 

Guess you like

Origin www.cnblogs.com/zgqbky/p/11722032.html