Situation
Add CentOS Repo To RedHat
How To
Add File CentOS.repo
In /etc/yum.repos.d/
And Edit It
vim /etc/yum.repos.d/centOS.repo
[centos]
name=CentOS-7
baseurl=http://ftp.heanet.ie/pub/centos/7/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=http://ftp.heanet.ie/pub/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7
Use yum repolist
Check
[root@localhost yum.repos.d]# yum repolist
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
repo id repo name status
!centos CentOS-7 10072
repolist: 10072