Friday, 27 April 2012


How to Add RHEL 6 iso as Repository


 1. Mount iso

[root@sheraz ~]# mount -o loop /home/rhel-server-6.0-x86_64-dvd.iso /mnt/

2. Create DVD.repo in /etc/yum.repos.d/ with the following content


[root@sheraz ~]# vi /etc/yum.repos.d/DVD.repo

[DVDREPO]
name=RHEL6 DVD
baseurl=file:///mnt/
enabled=1
gpgcheck=0

1 comment:

  1. [root@lucky /]# yum update
    Loaded plugins: rhnplugin, security
    There was an error parsing the RHN proxy settings.
    RHN support will be disabled.
    file:///mnt/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/repodata/repomd.xml'
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: DVDREPO. Please verify its path and try again

    ReplyDelete