Re: set priority for yum repository

seth vidal <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <1216313062.11915.11.camel@rosebud>
On Thu, 2008-07-17 at 19:26 +0300, Muayyad AlSadi wrote:
> > We want "yum install" to check the local repository before checking other mirror repositories. Is this possible?
> yes, just give it a smaller cost in the .repo file
> 
> cost=400
> 
> for example
> [local-fedora-cache]
> name=cache for fedora- i386
> failovermethod=priority
> baseurl=file:///opt/cache/fedora/packages/
> enabled=1
> gpgcheck=0
> cost=400

the only problem is he wants yum to function even when not connected to
the net. So, he has to make it so his repos won't fail to have any valid
mirrors. so using cost on another mirror would work, if only he's
willing to disable the other repos when not on the net.

-sv
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.