From owner-freebsd-questions@FreeBSD.ORG Fri Mar 7 06:54:29 2014 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 68B119EE for ; Fri, 7 Mar 2014 06:54:29 +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 0D42131C for ; Fri, 7 Mar 2014 06:54:28 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.8/8.14.8) with ESMTP id s276sGIv096040 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 7 Mar 2014 06:54:16 GMT (envelope-from matthew@FreeBSD.org) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk s276sGIv096040 Authentication-Results: smtp.infracaninophile.co.uk/s276sGIv096040; dkim=none reason="no signature"; dkim-adsp=none Message-ID: <53196D17.8000300@FreeBSD.org> Date: Fri, 07 Mar 2014 06:54:15 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: pkg equivalent of "pkg_info -R" References: <53186ABC.5060601@netfence.it> <20140306184030.078a99cedac859b5c5b83e22@embarqmail.com> In-Reply-To: <20140306184030.078a99cedac859b5c5b83e22@embarqmail.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4VlSeIk8riL04CG0klDigtSsS7bbbtMrm" X-Virus-Scanned: clamav-milter 0.98.1 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham 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: Fri, 07 Mar 2014 06:54:29 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --4VlSeIk8riL04CG0klDigtSsS7bbbtMrm Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 06/03/2014 23:40, Randy Pratt wrote: >> I know "pkg info -r xxx", but this will just list ports which *directl= y*=20 >> > depend on xxx. I could find no way to get indirect dependents too. >> > Is there something I'm missing? Any additional utility I can install= ? > I think what you're looking for is "pkg query %ro xxx". Look under > Multiline Patterns in man pkg-query. Note that it only lists run > dependencies since build dependencies are irrelevant with packages. Actually 'pkg query %ro pkgname' and 'pkg info -r pkgname' will produce essentially the same output. As the OP has noted: you only get the direct dependencies now. This is the result of a deliberate change. Formerly if you had a dependency chain foo -> bar -> baz then any change to baz meant that binary packages for all three ports would have had to be rebuilt. With only the direct dependencies registered, now only the bar and baz packages need rebuilding when baz gets updated. That saves an awful lot of unnecessary churn in package repositories and system maintainers having to update excessively large numbers of packages on their machines. Yes, being able to generate the entire dependency tree would be a desirable option. It's not particularly difficult, but it does require implementing recursive behaviour for such lookups. That just needs someone to step up and code it... Until then, you'ld have to write a shell wrapper around pkg query to achieve the same effect. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --4VlSeIk8riL04CG0klDigtSsS7bbbtMrm 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/ iQJ8BAEBCgBmBQJTGW0XXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATVZYQAIFlYnK6tyrXVk1hD0a0Onak VdCa7/sCAB3L1qodKh5MjuOEUoPbQXiyLJh7QhK/x2W/XYXdKm0FUej5Vg36SJe+ cCcvuC71kSWk51O4yg31fkHhpxGdgd/HtwXusA42b1W5Dcg3L7FCpmaDPDKdL1nv HGUcvV16zZeAwmNwnovo27YqV9zP4JtqdY2+6DS9fATMZv8fqWfQm5P3QDjJ4Hlp S997N49qUp+k9YXE8Y2Tv3Kx/gYdvGQVAy+Zkky8rKOKXhfMFOjS5EA5m3dFBBSs OwyjtIq/SW3d+xuZHY+cXn+o/QBMk0i+gSIpP2uNytsfC11wgGXYFIaVeJMiCFM1 MFhTow3wlrNtyAxxgtEXSZSlXIap8tPKGvWdf23RNgskC0eEjsP+33bGrP2fmmZf DT2avy7xUITEbhTgNlErnwXUQjCq/yluAyCRqhenehyyc0M/pV8vaKdKaao/66U0 ZSKI9ihzpsk7i12TFplcg5WtZT9K4nXafqdxOl4P2DjI0T2Vht8nJnqVU5KOz8Mf HuMUAgAvashXjvbdllgPLyIjkKwDhCfGqO6NhEfnxPAzo0r7Dx9/I4CFsurz8C5U kuKPz9rU4aeCWMoWFqKi8jWhw0tEUzwKAJLuVwXQEYufisfLuQFcDUe0dV4b62dw wrN+aPxR0KTMCnMwgntk =DWAU -----END PGP SIGNATURE----- --4VlSeIk8riL04CG0klDigtSsS7bbbtMrm--