4.3 Obtaining Packages from the Oracle Linux Installation Media

The installation media for Oracle Linux 6 contain two distinct repository sources for the Red Hat Compatible Kernel and the Unbreakable Enterprise Kernel. After installation, you can configure yum to use both repositories from an ISO image of the installation media by creating the file /etc/yum.repos.d/Media.repo that contains entries similar to the following:

[ol6_base_media]
name=Oracle Linux 6 Update 5 Base Media
baseurl=file:///media/ISOimage/Server
gpgkey=file:///media/ISOimage/RPM-GPG-KEY
gpgcheck=1
enabled=1

[ol6_uek_media]
name=Oracle Linux 6 Update 5 UEK R3 Media
baseurl=file:///media/ISOimage/UEK3
gpgkey=file:///media/ISOimage/RPM-GPG-KEY
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. If you do not require one of the repositories, set the value of the corresponding enabled parameter to 0.