Date: Mon, 14 Mar 2016 20:29:59 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Bryan Drewery <bdrewery@FreeBSD.org>, Daniel Eischen <deischen@freebsd.org>, Glen Barber <gjb@FreeBSD.org>, freebsd-current@freebsd.org, David Chisnall <theraven@FreeBSD.org>, freebsd-pkgbase@freebsd.org Subject: Re: [CFT] packaging the base system with pkg(8) Message-ID: <86d1qwkgco.fsf@desk.des.no> In-Reply-To: <56E57661.2060601@quip.cz> (Miroslav Lachman's message of "Sun, 13 Mar 2016 15:17:05 %2B0100") References: <20160302235429.GD75641@FreeBSD.org> <20160308124016.GA70809@zxy.spb.ru> <20160308131847.GP1531@FreeBSD.org> <20160308151459.GB70809@zxy.spb.ru> <05A039B7-AA9A-47BB-B68E-89D9D5627D20@FreeBSD.org> <20160311120511.GN31877@ivaldir.etoilebsd.net> <20160311131055.GO70809@zxy.spb.ru> <Pine.GSO.4.64.1603111144510.10158@sea.ntplx.net> <56E4F3E9.1070307@FreeBSD.org> <56E57661.2060601@quip.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
Miroslav Lachman <000.fbsd@quip.cz> writes: > Bryan Drewery <bdrewery@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.) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86d1qwkgco.fsf>