Centos 7 uses 163 yum Source
This article describes how to use the 163 yum source.
Download. you can install the repo source, but sometimes we need to install some additional Packages, so we need to download the Extra Packages for Enterprise Linux (EPEL) source. for example, if we need to install ansible with yum, We need to install epel.
Install the repo source.
The repo source generally includes three parts: base, updates, and Extras.
$ cd /etc/yum.repos.d/
$ wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
If there are other sources, you can temporarily rename them as other extensions, such as centos-base.repo.bak
$ mv CentOS7-Base-163.repo CentOS7-Base.repo
$ yum clean all
$ yum makecache
Install the epel source.
$ yum install epel-release
$ yum makecache
Check whether the installation is successful
$ yum repolist
Loaded plugins: fastestmirror, langpacksLoading mirror speeds from cached hostfile * epel: ftp.cuhk.edu.hkrepo id repo name statusbase/7/x86_64 CentOS-7 - Base - 163.com 9,007epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 10,133extras/7/x86_64 CentOS-7 - Extras - 163.com 310updates/7/x86_64 CentOS-7 - Updates - 163.com 1,687repolist: 21,137
From the above output, we can see that we have installed three parts of repo: base, updates, Extras. While EPEL is installed with epel.