Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Dec 2013 13:55:32 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: Multiple pkg repositories
Message-ID:  <529C9154.40606@infracaninophile.co.uk>
In-Reply-To: <20131202104355.37e2ca24f4068e1d86000134@sohara.org>
References:  <20131202104355.37e2ca24f4068e1d86000134@sohara.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?529C9154.40606>