Software >> OS >> Unix >> Linux >> Package Managers >> yum >> Oracle Linux >> 6 >> How to set up yum repository

1. login as root

2. # cd /etc/yum.repos.d

Oracle Linux 6 repository

3. # wget http://public-yum.oracle.com/public-yum-ol6.repo

EPEL repositories

CentOS/RHEL 7
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

CentOS/RHEL 6
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

CentOS/RHEL 5
# rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

REMI repositories 
CentOS/RHEL 7
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

CentOS/RHEL 6
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

CentOS/RHEL 5
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm