Re: set priority for yum repository

"Phil Li" <[email protected]>
Newsgroups gmane.linux.rpm.yum
Message-ID <[email protected]>
Many thanks for the replies! I did not know the option "cost" :-)
I would like to use createrepo to build a small local repository
inside a virtual machine. The size of the repository should be as
small as possible. The VM will be distributed to students on a CD/DVD.
Even without network connection, they can use yum to install a few
packages. If Internet connection is available, I hope they can install
any package from an online repository (e.g. kernel.org) using yum.

On 7/17/08, seth vidal <[email protected]> wrote:
> 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
>
>
> _______________________________________________
> Yum mailing list
> [email protected]
> https://lists.dulug.duke.edu/mailman/listinfo/yum
>
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.