Configure Yum Repository Steps
Configure Yum Repository Steps
To configure your OEL system to use the Oracle Public YUM Repository,
accomplish the following actions as root.
# cd /etc
2. Ensure the contents of the yum.conf file look like the following. Make
any changes necessary before proceeding to step 3.
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
# Default.
# installonly_limit = 3
NOTE: If your system needs to use a proxy to access the internet, add the
following line to the yum.conf file:
proxy=http://[url.to.proxy]:[port]
For example:
proxy=http://www.myproxy.com:80
# cd /etc/yum.repos.d
# vi /etc/yum.repos.d/oracle-public-yum-ol6.repo
[public_ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/
$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
1. Review each of the repo files in the /etc/yum.repos.d. Look for section
that looks similar to this:
[public_ol6_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL6/latest/
$basearch/
gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6
gpgcheck=1
enabled=1
If you do not see this in any of the repo files, accomplish the steps in the “2.
Creating a Repo File” section. If you do see this in one of the repo files, go
to next step below.
enabled=1
If not set to 1, make the change and save the file. If set to 1, you are
already configured to access the Oracle Public YUM Repository.
# yum repolist