[Yum] Local repository question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-07-19 at 08:48 -0700, Al Pacifico wrote:
> I'm having difficulty with yum appending
> 'Fedora/RPMS/' onto the baseurl of my local repository
> when trying to update using a file:// URL.
> 
> The relevant line(s) in my .repo are:
> [core]
> name=Fedora Core $releasever - $basearch
> #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
> #mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
> baseurl=file:///srv/www/html/yum/Fedora/Core/$releasever/base/$basearch/
> enabled=1
> gpgcheck=1
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
> file:///etc/pki/rpm-gpg/RPM-GPG-KEY
> 
> I think this behavior has to do with the file:// URL
> assuming it is using a Fedora distro CD as a
> repository and respecting the file layout of the CD.
> 
> This particular .repo is from a machine that has been
> serving as a repository on a LAN... I could change it
> to use an http://127.0.0.1/... URL, but I wish to
> disable yum's behavior (appending 'Fedora/RPMS/') on
> another machine for use with mock.
> 
> Suggestions???

Did you use the repodata directly from the cd/dvd?

If so - then that's probably the issue. Generate new repodata for the
copy you've made to the local directory.

-sv



[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux