Note The system must have sufficient storage space to host a full Oracle Linux Media Pack DVD image (approximately 3.5 GB for Oracle Linux Release 6 Update 3).
To create a local yum repository (for example, if a system does not have Internet access):
# sha1sum V33411-01.iso
7daae91cc0437f6a98a4359ad9706d678a9f19de V33411-01.iso
# cp /media/USB_stick/V33411-01.iso /ISOs
# mkdir -p /var/OSimage/OL6.3_x86_64 # mount -o loop,ro /ISOs/V33411-01.iso /var/OSimage/OL6.3_x86_64
/ISOs/V33411-01.iso /var/OSimage/OL6.3_x86_64 iso9660 loop,ro 0 0
In the /etc/yum.repos.d directory, edit the existing repository files, such as public-yum-ol6.repo or ULN-base.repo, and disable all entries by setting enabled=0.
[OL63] name=Oracle Linux 6.3 x86_64 baseurl=file:///var/OSimage/OL6.3_x86_64 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY gpgcheck=1 enabled=1
Clean up the yum cache.
# yum clean all
Test that you can use yum to access the repository.
# yum repolist Loaded plugins: refresh-packagekit, security ... repo id repo name status OL63 Oracle Linux 6.3 x86_64 25,459 repolist: 25,459