Date: Tue, 25 Feb 2014 21:12:18 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: Sergio de Almeida Lenzi <lenzi.sergio@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: pkgng and pkgdb Message-ID: <530D0732.1080906@FreeBSD.org> In-Reply-To: <1393361578.16975.12.camel@lenovo.toontown> References: <1393343788.39710.YahooMailNeo@web122301.mail.ne1.yahoo.com> <530CC4A5.4090105@freebsd.org> <1393361578.16975.12.camel@lenovo.toontown>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 25/02/2014 20:52, Sergio de Almeida Lenzi wrote: > Em Ter, 2014-02-25 =C3=A0s 16:28 +0000, Matthew Seaman escreveu: >> On 02/25/14 15:56, gahn wrote: >> > the question is: what is the equivalent of "pkgdb -Ff"? for pkg? >> >> Not needed at all with pkg(8). Because we're using a reasonable RDBMS= >> system (sqlite) we don't suffer from the same sort of corruption that >> the old package tools used to. > For me, that build my own packages... I use a pkg-shell kind of comman= d: > pkg shell <<% > update deps set version=3D(select packages.version from packages where > deps.origin=3Dpackages.origin); > % > this set the version of the packages with the version of de deps to mak= e > sure that they match > after that, I rebuild (pkg create ....) the packages that have changed > version and the ones that depends opon. > for example if I build glib20 for example, I build all the packages (pk= g > create...) that depends on glib20. > than I make a new repo and than when I install them (over http), > everything works ok. First of all: while you are welcome to futz around in the database on your own systems, be aware that this is entirely at your own risk, and you will receive little sympathy and less help should you cock things up. Also, we reserve the right to arbitrarily change the DB schema whenever we feel like it. So please don't encourage anyone to do such things on any system that matters. Instead, the approved mechanisms are the C-language interface provided by libpkg.so and the CLI tools provided as sub-commands of pkg(8). Those we have agreed to maintain under certain stability constraints so you should be assured that scripts etc. you write around them will keep on working -- or, at least, you will receive a prior warning of features being deprecated sufficiently far ahead that you can reasonably be able to fix things before the hammer comes down. In this case, it seems to me that what you are looking for is the 'pkg set' command: pkg set -o old/dependency:new/dependency which I admit is limited to one dependency port at a time. We hope to make the need for this pretty much obsolete with the new solver currently being worked on, but 'pkg set -o' will certainly remain available for long after the introduction of the new solver. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq 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/ iQJ8BAEBCgBmBQJTDQc8XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATnw0P/RQ9UIT/7xrBjkcTGci0MHIy n+C5dyTyUrAQUnMuTTBFACCD3+YoVkvZShtabYlIXaopVc6CW447cf31B1r3qK2g CDL8K5aAVf+0WwYh2JERJGwy+sSxBqBZn1pyqBs7WtY7txPeWA/DYgUxkE9O1WQb rJjYQZ0G21R3RRi4AQ/jHiN6bsBDkajFO7+BDrHDqz4lY2ZGiAqWE6tDyiKQodPd bH8l8wiksXcTvN66wR4I4ugZHaedcv6kGeFxHTy6JK39l/sLiHqkDh8Cpx12g00K q+r/x6EUyhdaDjDVLxRFOPTVHeN/YKLCH4omHvGNUgNxdx6mje53PcR6LXtuunLz JLc4kMLem5vJcDJz6wnBlupWVlGn9dr8z4VKxufMFq41bl8NGwvQga39+wYXhWrO k0VApMm1xr4jVtQVZRrLDutlwfxELdkSKAhDgSQfE5x/BE6XKwDiem2IS3X5UTDI 0IceJOvps7z18KgId1Nq4bIVC7kzKjFr2LS0JP+Bt8Sh7M9cSD9DlQN4XiyT8gz4 Zp9tFB+m114p+zM5Y1dof18nkgDeO1KVLV9zC4Yfh3JeyAiUHvh9zX2EeW0cssCn DGP86FmRVBu6oG9ObttDYv4waA/MqlEkEaA4b4zjepW8sF9NJNw5oJs6bMplvmvY VRv9jQqIs7smyLjCB8H+ =aCTs -----END PGP SIGNATURE----- --4dUBUKL7JKsTUvkpBDtfmeWRdLaJJWpbq--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?530D0732.1080906>