2.3 Downloading the Oracle Public Yum Repository Files

Note

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:

  1. As root, change directory to /etc/yum.repos.d.

    # cd /etc/yum.repos.d
  2. 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.repo

    For 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.

  3. You can enable or disable repositories in the file by setting the value of the enabled directive to 1 or 0 as required.