Re: Local Repo not working with installroot
shankha <[email protected]> Fri, 5 Feb 2016 17:43:50 -0500
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <CAO_L6qFTHH39QDzk9w-pth2w6eMvpfvrs-hoYGQ5uHYvTqD4xw@mail.gmail.com> |
Please ignore my mail. I figured out the problem. The directory /xyz has to be empty. Thanks On Fri, Feb 5, 2016 at 4:47 PM, shankha <[email protected]> wrote: > Hi, > I am trying to install some files from a local repo. > > Here is my repo file: > > [cdrom2] > name=cdrom2 > baseurl=file:///media/cdrom > enabled=1 > gpgcheck=0 > gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 > > > I can execute the following command successfully: > > yum --disablerepo=* --enablerepo=cdrom2 install coreutils > > I am not able to execute the command: > > yum --disablerepo=* --enablerepo=cdrom2 --installroot=/xyz > --releasever=/ install coreutils > > The error message: > > Error getting repository data for cdrom2, repository not found > > Thanks