Adding RedHat DVD as Repository

Create file:
/etc/yum.repos.d/rhel-dvd.repo

With the follow content:


[dvd]
name=Red Hat Enterprise Linux Installation DVD
baseurl=file:///mnt/dvd/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Create directory /mnt/dvd if not exist:

mkdir /mnt/dvd

Mount dvd :

mount /dev/dvd /mnt/dvd/

Thats all! now You're be able to install packages from dvd with yum command.