The following procedure assumes that yum on your system is configured to expect
to find repository files in the default /etc/yum.repos.d directory.
To download the Oracle public yum repository configuration file:
As root, change directory to
/etc/yum.repos.d.
# cd /etc/yum.repos.d Use the wget utility to download the repository configuration
file that is appropriate for your system.
# wget http://public-yum.oracle.com/public-yum-release.repoFor Oracle Linux 6, enter:
# wget http://public-yum.oracle.com/public-yum-ol6.repo The /etc/yum.repos.d directory is updated with the repository
configuration file, in this example, public-yum-ol6.repo.
You can enable or disable repositories in the file by setting the value of the
enabled directive to 1 or 0 as required.