Re: local repo error
seth vidal <[email protected]>
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <1135479942.21475.0.camel@cutter> |
On Sun, 2005-12-25 at 06:22 +0500, abac wrote: > hi, > i have local rpms and wnat to use as local repo for yum i made this > directories: > /extra/updates/RPMS > put all the rpms in the RPMS directory and run the command: > createrepo updates/ > the repodata directory was created with these files: > filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml > i add the updates.repo to yum.repos.d: > [updates] > name=extra - updates > baseurl=file://extra/updates/ > enabled=1 > > now when i run yum update get this error for the local repo: > dries 100% |=========================| 951 B 00:00 > file://extra/updates/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] > No such file or directory: '/updates/repodata/repomd.xml' > Trying other mirror. > Cannot open/read repomd.xml file for repository: updates > failure: repodata/repomd.xml from updates: [Errno 256] No more mirrors > to try. > please help me. file:///extras/updates notice the 3rd / there. that's b/c file url's break up like: file://HOSTNAME/path so you have to do 3 slashes. -sv