[CFT] packaging the base system with pkg(8)

Baptiste Daroussin bapt at FreeBSD.org
Tue Mar 15 03:33:39 UTC 2016


On Mon, Mar 14, 2016 at 12:38:55PM -0700, Bryan Drewery wrote:
> On 3/14/16 12:29 PM, Dag-Erling Smørgrav wrote:
> > Miroslav Lachman <000.fbsd at quip.cz> writes:
> >> Bryan Drewery <bdrewery at 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.)
> > 
> 
> Yeah that's why I never included it by default. It can be interesting
> sometimes but often is too noisy. I didn't want to encourage its use by
> default vs pkg info or pkg query.

Also note that if people likes graph we can now generate graphviz output from
the solver using pkg -o DOT_FILE="/something.dot" <upgrade|install|delete> then
play with graphviz.

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20160315/b6d6e744/attachment.sig>


More information about the freebsd-current mailing list