Dag-Erling Smørgrav wrote on 03/14/2016 20:29:
Miroslav Lachman <000.f...@quip.cz> writes:
Bryan Drewery <bdrew...@freebsd.org> writes:
https://github.com/freebsd/pkg/blob/master/scripts/pkg_tree.sh
Can you publish it as a port? I know there is one written in Perl but
I like your sh without dependencies.

It's not very useful, in my opinion.  The relationships between packages
form a directed acyclic graph, not a tree, so pkg_tree.sh will either
show too little (without -r) or far, far too much (with -r).  If you
want to visualize the package graph, you can feed the output of 'pkg
query "%n %dn"' into something like graphviz.  For other tasks, you are
better off learning how to use 'pkg query' and possibly creating your
own aliases or scripts.  It's not that difficult; feel free to ask for
help.

(Just for kicks, I tried running 'pkg_tree.sh -rn' on my desktop, which
has 934 packages installed.  It's been running for ten minutes and has
printed over 90,000 lines, with no end in sight.)

I know it. :) I had my own similar script "ports_tree.sh" to show me dependencies according to choosen options. I know it is too verbose and I use grep -v to exclude known packages from the output. The same will apply to pkg_tree.sh as well. I use pkg info -r, pkg info -d or pkg query often. The request for port of pkg_tree.sh has not high priority for me, it is just that this shell version is better than already existing pkg_tree in Perl. (which I don't use)

Miroslav Lachman

_______________________________________________
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to