5.3 Obtaining Packages from the Oracle Linux Installation Media

After installation, following these steps to configure yum to use the full installation ISO image as a repository for installing packages:

  1. Mount the full installation ISO image on a suitable mount point, such as /mnt:

    # mount -t iso9660 -o loop full_image.iso /mnt
  2. Create the file /etc/yum.repos.d/Media.repo that contains entries similar to the following:

    [ol7_base_media]
    name=Oracle Linux 7 Base Media
    baseurl=file:///mnt
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
    gpgcheck=1
    enabled=1
    

    Adjust the value of the baseurl and gpgkey parameters to match the mount point of the ISO image on your system.

  3. Use the yum repolist command to check the repository configuration.