Install packages from RHEL DVD with yum

There are a lot of packages available on the RedHat Enterprise Linux Installation DVD (I count 3764 .rpm files on version 6.5 Beta), and you can mount the DVD on your system and then use it as a repository to install them with yum. To do that:

  1. First you need access to the files on the DVD. If the disk is inserted in a physical DVD drive on your system, or if you are working in a virtual machine and you have the DVD attached to the VM's virtual optical drive, you can mount it with:

    mkdir /media/rhel
    mount /dev/cdrom /media/rhel

    Otherwise, if you have the .iso image locally on the system, you can mount that one instead:

    mkdir /media/rhel
    mount -o loop /root/rhel.iso /media/rhel
  2. Next, you need to create a Yum repository pointing to the mounted disk. To do that, create a new .repo file in the /etc/yum.repos.d/ directory:

    vi /etc/yum.repos.d/rhel-media.repo

    ...and populate it with the following lines:


    If you don't remember the configuration lines listed above, you can peak at other .repo files in /etc/yum.repos.d/.

You can then install packages, for example httpd with simply doing:

yum install httpd

You can also verify that the DVD is the source for that package with:

yum info  httpd | grep Repo
Repo        : rhel-media