From owner-freebsd-ports@FreeBSD.ORG Sun Nov 3 08:10:35 2013 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9FC2D783 for ; Sun, 3 Nov 2013 08:10:35 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id EDDE922F9 for ; Sun, 3 Nov 2013 08:10:34 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id KAA00429; Sun, 03 Nov 2013 10:10:24 +0200 (EET) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1VcslL-0001pG-Sz; Sun, 03 Nov 2013 10:10:23 +0200 Message-ID: <527604B9.5060707@FreeBSD.org> Date: Sun, 03 Nov 2013 10:09:29 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Michael Gmelin , Nikolai Lifanov Subject: Re: pkgng repository priorities References: <826cd3ab0c12abf926b1ba9a230b8226@mail.lifanov.com> <20131103030035.4e2fdf08@bsd64.grem.de> In-Reply-To: <20131103030035.4e2fdf08@bsd64.grem.de> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Nov 2013 08:10:35 -0000 on 03/11/2013 04:00 Michael Gmelin said the following: > On Sat, 02 Nov 2013 21:44:43 -0400 > Nikolai Lifanov 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