RedHat 7 – Setup locally mounted CD/DVD/ISO as yum repository

1. Mount the disk to /media folder
2. copy media.repo from the root of the disk to /etc/yum.repos.d/ and set permission to 644
3. edit the media.repo changing gpgchedk from 0 to 1 and adding the following lines:


4. Clear caches:
yum clean all
subscription-manager clean

5. list and update yum

yum list
yum update