From owner-freebsd-questions@FreeBSD.ORG Mon Dec 2 13:55:55 2013 Return-Path: Delivered-To: freebsd-questions@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 ESMTPS id 74C47A5E for ; Mon, 2 Dec 2013 13:55:55 +0000 (UTC) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 195DE155E for ; Mon, 2 Dec 2013 13:55:54 +0000 (UTC) Received: from ox-dell39.ox.adestra.com (no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged)) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id rB2DthTE098557 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 2 Dec 2013 13:55:49 GMT (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk rB2DthTE098557 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1385992549; bh=NLZsJFlkAp/s3vr2H4mYuMUiWWGOKU1mT4FcAqGSVx8=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Mon,=2002=20Dec=202013=2013:55:32=20+0000|From:=20Matthew =20Seaman=20|To:=20freebsd-questi ons@freebsd.org|Subject:=20Re:=20Multiple=20pkg=20repositories|Ref erences:=20<20131202104355.37e2ca24f4068e1d86000134@sohara.org>|In -Reply-To:=20<20131202104355.37e2ca24f4068e1d86000134@sohara.org>; b=O6P0x+Y1f0FTXXO8/V2gvfziyt8aez1uUM3QJ37o2rDW/x413nupvxyZflJ5ch6qv cNykCsfmYl5IvZK62A5+o4GfqlxQ6xkVu3RQwlpaAc7GDLbkXSVrOvFS5HcspFgQKm qK9ZhgkDu/lhXeoox4nchgfaEsspqMoT8UfpiVTA= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host no-reverse-dns.metronet-uk.com [85.199.232.226] (may be forged) claimed to be ox-dell39.ox.adestra.com Message-ID: <529C9154.40606@infracaninophile.co.uk> Date: Mon, 02 Dec 2013 13:55:32 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Multiple pkg repositories References: <20131202104355.37e2ca24f4068e1d86000134@sohara.org> In-Reply-To: <20131202104355.37e2ca24f4068e1d86000134@sohara.org> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nlaUAs3n9WJ1uL11efbVwsWVw0G9N1Rb1" X-Virus-Scanned: clamav-milter 0.98 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=AWL,BAYES_00,DCC_CHECK, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_RP_RNBL,RDNS_NONE autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Dec 2013 13:55:55 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --nlaUAs3n9WJ1uL11efbVwsWVw0G9N1Rb1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 12/02/13 10:43, Steve O'Hara-Smith wrote: > Hi, >=20 > I see with the pkg-1.2 there is support for using multiple > repositories. What is not clear is how to control the search order in t= hese > repositories. I'd like to arrange that my local repository is searched > first with a fallback to the official repository, primarily so that I c= an > avoid compiling some of the monsters like libreoffice, firefox etc. whi= le > still having packages with my selected options and custom patches where= I > want them. >=20 > Anyone know if it's possible to set this up reliably ? Repositories are searched in order of the names of the .conf files in /usr/local/etc/pkg/repos -- not sure how adding /etc/pkg/FreeBSD.conf into that mix affects things though. However you can easily test as it's also the order that repositories are listed in the 'pkg -vv' output.= This was not, as far as I can tell, /intended/ to be the way this sort of functionality should be controlled, but by happy accident it seems to work pretty well. The more sophisticated solvers we're planning on introducing will probably muddy the waters a bit as far as matching what the user thinks the preferred repository should be and what pkg(8) chooses, as it will consider a larger range of factors in order to get a consistent dependency graph. You should also be aware of using 'pkg annotate' to force a package to be installed from a specific repository. See the section 'WORKING WITH MULTIPLE REPOSITORIES' in pkg-repository(5). Cheers, Matthew --nlaUAs3n9WJ1uL11efbVwsWVw0G9N1Rb1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSnJFdXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnxxIP/jTDmEdII1ct+teBN8flk8qm W7glP6y1Ejp4a1M5VxTDmMPGKhUnq6+y3kVv1fWBtz9DOXE/XSQzHrXLkGz7w46h OfQtaGdFhAIdNYbIAETDejNuWHXemsKYk7fb8BuT6WR38wzb5sZVM8Z0JkJ43WdI VGF+MjlgB1UiI/usnOhh5hD1+KXY0mrVAfE6Zh8dDIzg2yTDs4Fsn4ymvYd8n8ME oNEw+gjSHgHptMtvxHJoMTie50p1aCe21aWKRavduFjuqjwszn2yfY8EDfK4kRgM S+uy9uZebPNZiG4zDi1uY8Vvl0yP4Uxt3fAQJc6DkNzmxqfKdrjYCcj0eJhinXfG S9hWuclq5gfRJiBstmKPa+8tWFqUiDAflElJ8oTsVNO7SBn9SDGVU5CwkDR0EzTT 9058jPOF4n+4CYkymCBkDelgJKSEx1gLyXax/PN8Smm7cjkDfYp0X3Yz/ktxOj4R 9EKbIBnbOnwiptAbVNrXU7wUIFan3sn6TNcp0FuFfR36DPLcfnaiRTgNNnX78dBK Zj5XFba1ppnH2V3Hm6/zsu2m3kFGSeEI6/MGEU6iSTBvHUk6moYNvboXIriem35W wtnlaIq638jEzNmDFFpyxQ/lNvrir+VGByBjPNag/JBx1d4xJsrOcDwQDkOhk2Wx UXrl+cDtMgDp21uw2Fg9 =kNMQ -----END PGP SIGNATURE----- --nlaUAs3n9WJ1uL11efbVwsWVw0G9N1Rb1--