A graphical dependency tree viewer?

Matthew Seaman matthew at FreeBSD.org
Tue Jan 8 09:48:09 UTC 2019


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




More information about the freebsd-pkg mailing list