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. . . . . . . .