Wednesday, April 18, 2018

Redhat 7 - create new REPO from ISO

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

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


8) yum repolist
=> should see the RHEL 7.5 now

No comments:

Post a Comment