Date: Fri, 17 Jan 2014 06:49:31 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Matthew Pounsett <matt@conundrum.com>, "freebsd-questions@freebsd.org Mailing List" <freebsd-questions@freebsd.org> Subject: Re: pkg install: what is the "first" repository? Message-ID: <52D8D27B.2030804@infracaninophile.co.uk> In-Reply-To: <48811877-E688-4E0F-AF26-57C1C0135314@conundrum.com> References: <48811877-E688-4E0F-AF26-57C1C0135314@conundrum.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9ffFw2Iv72suROx0GE9JPu1lDdrpR2dwv Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 17/01/2014 04:04, Matthew Pounsett wrote: >=20 > From the pkg man page: > install > Install a package from a remote package repository. If a = package > is found in more than one remote repository, then installa= tion > happens from the first one. Downloading a package is trie= d from > each package repository in turn, until the package is succ= ess- > fully fetched. >=20 > What is pkg's definition of "first"? =20 >=20 > I have a single file in /usr/local/etc/pkg/repos/ which lists two > local repositories. 'vim' exists in the first one in that file. All > of vim's dependencies are available from that repo. Some of its > dependencies exist in both, since they're required by things > available from both repositories. >=20 > For the dependencies that exist in both, pkg is trying to grab them > from the second repository in that file. I'm trying to figure out > why, so I can make it stop. 'First' is just based on an alphabetical sort of the repo.conf files by file name. However, pkg(8) will generally look for the most recent package available for any port, which will override that ordering preference. You can use 'pkg annotate' to force pkg(8) to always use a specific repo for a particular port. Details are in pkg-repository(5). Note that there are changes in the pipeline which will make a significant difference to the way pkg selects which repository to pull a package from, as part of a complete revision of how dependency solving works. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --9ffFw2Iv72suROx0GE9JPu1lDdrpR2dwv Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJS2NJ8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATgusP/REM8dyFWLCgPY6+7JHw4rNl ZL0/pl7qOHeG7M5sWuqhgdreACRT3uVKe9UeRZEvWYmVGVv1j7ee81HS1O34fSaB Fmv4U2/i7jQyGuV/gJ4xpyeEelBNGgrdo55vDKRNeYJ2rHlg/X6yjYtYF8A/zsJ/ L9mfoewPGwZZ1ASSP4p6WxtfRTVmyUkgNZvTqdfMTztmFbJyoz+1GJStWAB2FwaS 1jsWJTrbM/8oijrvWnhYtHBW4DC9kaAMTxm+gkZyO2EDQgrKAwjUtMnZMZB0nKMG rqmvxyDXF66bnbApbdrSjCS2B1JgDA06appdCW4Jono7XKe6ijLYqbetC2d+i8jH p/n8pqoEyVXgd/2a/0kQoRiwFe6vf9O7ndAIzCE7nAVw0SQU9FTPaFpWMBO0W4d0 U257aYneOiItIf2CMa2HPRhoAd7RyVTj2lTx9Nog/D14SvG6Lc1zQiaGUQekcl13 +AtzMpWd62dm5blS5gMyOHkk0NqiZncnZml7StuFfCjmzBfuB+XM94YSLcT4f31o z0YCZcQiRzQjoIOBl2vuPC8omy4xA0orVNsCrrlEWNzjaEMbwRYhfNsHe0cSAuaV YvjZb38wOePH06F2RkmrLTBUsEuOtBe0V2rtxVXO/max5kXuYm7gbHq9yLVkes2J qDtlM5pcv8ESF8DcKYhk =6BNh -----END PGP SIGNATURE----- --9ffFw2Iv72suROx0GE9JPu1lDdrpR2dwv--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52D8D27B.2030804>