Setup yum (optional)

Oracle recommends you use yum (Yellowdog Updater, Modified) to install the required RPM (Red Hat Package Manager) Linux software packages.

yum simplifies the installation process by automatically searching RPM package repositories for the latest package versions and their dependencies. See Install Required Linux Packages for the required packages.

Use this procedure to ensure that yum is configured correctly on the STA server.

Note:

The command examples use ol7 where the "l" is lower-case "L".
  1. Ping the Oracle public-yum server to ensure the network connection is working.
    # ping public-yum.oracle.com
    
  2. Change to the yum repository directory and determine the yum repository filename.
    # cd /etc/yum.repos.d
    # ls
    public-yum-ol7.repo
    
  3. Remove the existing yum repository file.
    # rm public-yum-ol7.repo
    
  4. Download the latest yum repository file from the yum website.
    # wget http://public-yum.oracle.com/public-yum-ol7.repo

    Note:

    Subsequent executions of this command will copy a new repository file into the yum.repos.d folder with a new extension (for example, public-yum-ol7.repo.1). However, yum always uses the repository file with no extension.

  5. Open the repository file with a text editor.
    # vi public-yum-ol7.repo
    
  6. In the file, locate the entry that matches your Linux version and enable it by setting enabled=1. Disable all other entries by setting enabled=0.

    For example:

    [Linux_Version]
    name=Oracle Linux $releasever Update x installation media copy ($basearch)
    baseurl=http://public-yum.oracle.com/repo/OracleLinux/OL7/x/base/$basearch/
    gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol7
    gpgcheck=1
    enabled=1
    
  7. Save and exit the file.