Re: set priority for yum repository

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

 



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 <skvidal@xxxxxxxxxxxxxxxxx> 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
> Yum@xxxxxxxxxxxxxxxxxxxx
> https://lists.dulug.duke.edu/mailman/listinfo/yum
>
_______________________________________________
Yum mailing list
Yum@xxxxxxxxxxxxxxxxxxxx
https://lists.dulug.duke.edu/mailman/listinfo/yum

[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