CentOS Configuration Third-party Epol Source
Objective
In the CentOS default Yum sometimes there is no installation package that we need, which is the need to configure a third-party source. After you have configured the source, you can install the required software packages directly with Yum.
Operation Steps
1. Backup (if other Epel sources are configured)
Mv/etc/yum.repos.d/epel.repo/etc/yum.repos.d/epel.repo.backup
Mv/etc/yum.repos.d/epel-testing.repo/etc/yum.repos.d/epel-testing.repo.backup
2. Download new repo to/etc/yum.repos.d/
Epel (RHEL 7)
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-7.repo
Epel (RHEL 6)
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-6.repo
Epel (RHEL 5)
Wget-o/etc/yum.repos.d/epel.repo Http://mirrors.aliyun.com/repo/epel-5.rep
3. Yum Install the software you need
CentOS Configuration L Third-party EPO source