Reference Address: https://blog.csdn.net/u010048823/article/details/51298183
To epel source as an example to explain how to add an extra YUM sources.
Extra Packages for Enterprise Linux (EPEL)
Epel did not know what it means, just know to install it. The above is its full name.
On a single server, the default source YUM package may be a lot less, so we have to manually add new YUM sources.
1, in the initial state YUM View source
2, add a new source EPEL
https://fedoraproject.org/wiki/EPEL
For RHEL / CentOS 6:
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
For RHEL / CentOS 7:
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
3, manually update
# yum makecache
4, once again view the source list YUM
5, add on other sources YUM
Reference Address: https://blog.itnmg.net/2012/09/17/centos-yum-source/
Add Remi Source :
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
Add RPMfoge Source:
http://repository.it4i.cz/mirrors/repoforge/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
http://repository.it4i.cz/mirrors/repoforge/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
Add CentALT Source :
http://centos.alt.ru/
Php source added :
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el7/latest.rpm