From owner-freebsd-pkg@freebsd.org Tue Jan 8 07:10:10 2019 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B7AE31491D67 for ; Tue, 8 Jan 2019 07:10:10 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) Received: from admin.sibptus.ru (admin.sibptus.ru [IPv6:2001:19f0:5001:21dc::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DD5BF720BD for ; Tue, 8 Jan 2019 07:10:09 +0000 (UTC) (envelope-from vas@mpeks.tomsk.su) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sibptus.ru; s=20181118; h=In-Reply-To:Message-ID:Subject:To:From:Date; bh=udZSMgwWTq0Lq2dYObduUWjdAd+zOi1sCW5oP13fCTk=; b=JPS8N3qZOo8ZFUIi1xHkTUrKxj FGHi9Nrbx8zITeNEsdRbDZGKoOPs2O4+2kpJ/ZLUS80AC3kMTu7ISfcxXpY/x84qWOMhqtGxqyw5Y Q0MNeZ+dwkjsgWBoQL7RtVWBLXWG/G02a6PvjRA+C5EX3N/Bhxx2porVb3Ct0DTVlmLs=; Received: from vas by admin.sibptus.ru with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gglWa-000DDg-Ki for freebsd-pkg@freebsd.org; Tue, 08 Jan 2019 14:10:08 +0700 Date: Tue, 8 Jan 2019 14:10:08 +0700 From: Victor Sudakov To: freebsd-pkg@freebsd.org Subject: Re: A graphical dependency tree viewer? Message-ID: <20190108071008.GA49490@admin.sibptus.ru> References: <20190107100901.GA36925@admin.sibptus.ru> <4121f685-10b9-aab5-9c33-5356fb30a8d8@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <4121f685-10b9-aab5-9c33-5356fb30a8d8@FreeBSD.org> X-PGP-Key: http://www.dreamwidth.org/pubkey?user=victor_sudakov X-PGP-Fingerprint: 10E3 1171 1273 E007 C2E9 3532 0DA4 F259 9B5E C634 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Victor Sudakov X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2019 07:10:10 -0000 --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Matthew Seaman wrote: > >=20 > > Is there a tool to view all the dependencies of a port/package > > (including indirect ones) as a tree? A .dot format would be perfect, but > > an ascii-art tree would do too. > >=20 > > It would be especially useful if this tool could extract information > > from /var/db/pkg/*.sqlite without requiring a ports tree. > >=20 >=20 > Does this suit your purposes? >=20 > https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh >=20 The author of the script has the right idea, but the visual presentation of the graph is lacking: the vertical lines going down towards nowhere are confusing: https://termbin.com/vf3u=20 The tabbed view (-n) is a bit better. Also, why is openjdk8-8.192.26_3 twice in the tree (see the link above), is this intentional? --=20 Victor Sudakov, VAS4-RIPE, VAS47-RIPN 2:5005/49@fidonet http://vas.tomsk.ru/ --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJcNEzQAAoJEA2k8lmbXsY0GwoH/2GmGBU1w1zNKTwAjCe2e+a7 GS5uwC8gQL+s16xZC/RsbuiNzy5NxCZTuWg0IDKjVeqtlWKXsg5pSJKcFDHceQSL TQYJzKTe2v8SzeCOVbwFuItve3ElxcTTu4vRpYC6pMbmtgaV8nNYufBrzsqWKWeS Qkn0FYSBZWIBcJrmA7ExzFyVH5hjQjErWXz9lr+K/ZYpxsvGJe2bqWZdPlFYK3km Ei4CgDN6jmGg06j2a/zjDvbz8wLZujxbkvvmgaI9jqNCRzoP5j+EB19OhnxVmJov cq/BXIqYPYd3kuTKgEmqh4pSK9kP/8DnlhWPfkiLuhp99IFUj/7bTPntqFz8xwI= =ITMR -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--