First, the domestic software source
- Ali: https://mirrors.aliyun.com/
- Tsinghua University: https://mirrors.tuna.tsinghua.edu.cn/
- Zhong Ke: https://mirrors.ustc.edu.cn/
There are many, we can Baidu.
Second, the CentOS 6.7 as an example configuration 1. Backing up the system default source configuration
2. Enter Ali Source website
3. Download the new Centos-base.repo to/etc/yum.repos.d/centos 5
Wget-o/etc/yum.repos.d/centos-base.repo http://Mirrors.aliyun.com/repo/centos-5.repo
Or
Curl-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
Wget-o/etc/yum.repos.d/centos-base.repo http://
Or
Curl-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-6.repo
CentOS 7
Wget-o/etc/yum.repos.d/centos-base.repo http://
Or
Curl-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo
Third, generate Yum cache
Yum Makecache
01_linux Software Source Configuration