[root@rhel7 ~]# mkdir /mnt/rhel7-repo-iso [root@rhel7 ~]# mount /dev/cdrom /mnt/rhel7-repo-iso/ mount: /dev/sr0 is write-protected, mounting read-only
cp -p /mnt/cdrom/media.repo /etc/yum.repos.d/media.repo
#Create yum repository
[root@rhel7 ~]# vi /etc/yum.repos.d/media.repo [root@rhel7 ~]# cat /etc/yum.repos.d/media.repo [RHEL_7_Disc] name=RHEL_7_x86_64_Disc baseurl="file:///media/rhel7-repo-iso/" gpgcheck=0
# yum repolist
No comments:
Post a Comment