Adding RHEL DVD as Repository

Perform the next steps to add RHEL installation DVD as repository.

Step 1: Create mount point and mount the DVD

$ mkdir /mnt/rhel-dvd && mount -t iso9660 -o ro /dev/cdrom /mnt/rhel-dvd

Step 2: Create RHEL repo list and call it ‘rhel-dvd.repo’

$ touch /etc/yum.repos.d/rhel-dvd.repo

Step 3: Add the following config to ‘rhel-dvd.repo’

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

Step 4: Clean your cache

$ yum clean all

Now you can install the new software from the DVD using ‘yum install’ command.

Recommended Book

This is a must-read for anyone who wants to understand, explain and implement DevOps culture, process and tools for high performance development and operations.

All DevOps practices in a single place - organisational, cultural and technical. Lots of exceptional case studies.

Increase profitability, elevate work culture, and exceed productivity goals through DevOps practices.