Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Nov 2013 10:09:29 +0200
From:      Andriy Gapon <avg@FreeBSD.org>
To:        Michael Gmelin <freebsd@grem.de>, Nikolai Lifanov <lifanov@mail.lifanov.com>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: pkgng repository priorities
Message-ID:  <527604B9.5060707@FreeBSD.org>
In-Reply-To: <20131103030035.4e2fdf08@bsd64.grem.de>
References:  <826cd3ab0c12abf926b1ba9a230b8226@mail.lifanov.com> <20131103030035.4e2fdf08@bsd64.grem.de>

next in thread | previous in thread | raw e-mail | index | archive | help
on 03/11/2013 04:00 Michael Gmelin said the following:
> On Sat, 02 Nov 2013 21:44:43 -0400
> Nikolai Lifanov <lifanov@mail.lifanov.com> wrote:
> 
>> Is there any documentation about how to use PKGNG repository
>> priorities? I heard that these are available.
>>
>> Currently, I have my repository configurations like this:
>> 1-myrepo.conf
>> 2-anotherrepo.conf
>> 3-someotherthirdpartyrepo.conf
>>
>> This roughly prefers stuff from what appears first in asciibetical 
>> order.
>>
>> I would like to use the official FreeBSD package sets, but to do
>> this, I need to always prefer a package from a local repository
>> (WITH_NEW_XORG, WITH_KMS) if a package is available in it.
>>
>> How can I set this kind of preference?
> 
> According to pkg-repository(5):
> 
> WORKING WITH MULTIPLE REPOSITORIES
>      Where several different repositories are configured pkg will search
>      amongst them all in the order specified, unless directed to use a
>      single repository by the -r -flag -to pkg-fetch(8), pkg-install(8),
>      pkg-upgrade, pkg-search or pkg-rquery.  The search order is as
>      displayed in the output of
> 
>            pkg -v -v
> 

This information does not seem to match the reality though:
https://github.com/freebsd/pkg/issues/632

Also, pkg-repository(5) provides useful information on how to pin some packages
to a certain repository, but be aware of the following bug:
https://github.com/freebsd/pkg/issues/631

Speaking from my own practical experience with multi-repository setup.

-- 
Andriy Gapon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?527604B9.5060707>