Need help with local devel repo optimization for mock...

Tim Lauridsen tla-ml at rasmil.dk
Fri Mar 31 10:35:51 UTC 2006


Orion Poplawski wrote:
> Goals:
>
> - Always get the latest development package versions for my local mock 
> builds.
> - Keep internet bandwidth usage low and at off peak times.
>
>
> What I'd like to do is update my local rawhide repo copy every Sunday, 
> but still be able to download any needed updated package for a build.
>
> My first thought was simply to add my local repo to the mock configs:
>
> # repos
>
> [cora]
> name=cora
> baseurl=file:///data/sw1/fedora/core/development/i386
>
> [core]
> name=core
> baseurl=http://newmirror.linux.duke.edu/pub/fedora/linux/core/development/i386 
>
>
> But the question comes up, if [cora] and [core] both have the same 
> version of a package, how can I make sure that the package is taken 
> from [cora]?
>
>
You could try something like this.

[core]
name=core
baseurl=file:///data/sw1/fedora/core/development/i386
              
http://newmirror.linux.duke.edu/pub/fedora/linux/core/development/i386
 failovermethod=priority


The failovermethod=priority make yum always try using the baseurls from 
the top.

You could also add "enabled=0" to your [core] repo, to disable it by 
default, then the [cora] will be used.

Tim




More information about the fedora-extras-list mailing list