Software >> OS >> Unix >> Linux >> Package Managers >> yum >> RHEL >> How to create a yum repo with your RHEL DVD

# mkdir /mnt/cdrom
# mount /dev/cdrom /mnt/cdrom
# cd /etc/yum.repos.d/
# vi dvd.repo

[dvd-source]
name=RHEL 7.2 dvd repo
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0 


# yum repolist