Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2019 09:48:04 +0000
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: A graphical dependency tree viewer?
Message-ID:  <54c7bdc4-9eee-5353-88a8-2f6d6831c710@FreeBSD.org>
In-Reply-To: <20190108071008.GA49490@admin.sibptus.ru>
References:  <20190107100901.GA36925@admin.sibptus.ru> <4121f685-10b9-aab5-9c33-5356fb30a8d8@FreeBSD.org> <20190108071008.GA49490@admin.sibptus.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/01/2019 07:10, Victor Sudakov wrote:
> Matthew Seaman wrote:
>>>
>>> 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.
>>>
>>> It would be especially useful if this tool could extract information
>>> from /var/db/pkg/*.sqlite without requiring a ports tree.
>>>
>>
>> Does this suit your purposes?
>>
>> https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh
>>
> 
> 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
> 
> 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?

Yeah -- the output doesn't merge common dependency subtrees, so if A 
depends on B depends on C and also A depends on D depends on C, then C 
will appear twice in the output.

	Cheers,

	Matthew





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54c7bdc4-9eee-5353-88a8-2f6d6831c710>