1) su -
2) cd /
3) mkdir /cdrom
4) mount /dev/sr0 /cdrom
=> mkae sure the RHEL 7.5 iso is in cdrom 0
5) cd /etc/yum.repos.d/
6) mv redhat.repo redhat.repo_bk
7) vi dvd.repo
8) yum repolist
=> should see the RHEL 7.5 now
2) cd /
3) mkdir /cdrom
4) mount /dev/sr0 /cdrom
=> mkae sure the RHEL 7.5 iso is in cdrom 0
5) cd /etc/yum.repos.d/
6) mv redhat.repo redhat.repo_bk
7) vi dvd.repo
[dvd-source]
name=RHEL 7.5
baseurl=file://cdrom
enabled=1
gpgcheck=0
8) yum repolist
=> should see the RHEL 7.5 now