Configure the local YUM repository

  1. Upload the rhel-server-6.5-x86_64-dvd.iso image file to each target VM.

  1. Mount the ISO file.

mount -o loop rhel-server-6.5-x86_64-dvd.iso /mnt

  1. Modify YUM configuration files.

cp /etc/yum.repos.d/rhel-source.repo /etc/yum.repos.d/rhel-source.repo.bkp

vim /etc/yum.repos.d/rhel-source.repo

  1. Modify the following lines:

[rhel-source]

name=Red Hat Enterprise Linux $releasever - $basearch - Source

baseurl=file:///mnt

enabled=1

gpgcheck=1

gpgkey=file:///mnt/RPM-GPG-KEY-redhat-release

  1. Update configuration changes.

yum update