pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How do you manage space consumed by /usr/pkg



* On 2019-05-11 at 15:24 BST, Mayuresh wrote:

> On Sat, May 11, 2019 at 02:59:17PM +0100, Ottavio Caruso wrote:
> > I can offer no answer, but we had a similar discussion a few years ago:
> > https://mail-index.netbsd.org/pkgsrc-users/2014/06/19/msg019902.html
> 
> Yes, I had seen that! That's how I got to know about pkg_leaves, but
> that's only a small part of the overall problem.
> 
> Out of a number of items I have suggested, most important seems size of a
> package on disk. If there is a way to report it, it will be useful.

You could parse "pkg_info -as" output with awk, though to be honest I
just use:

  $ grep . /path/to/pkgdb/*/+SIZE_PKG | sort -t: -k2n

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index