Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2012 16:14:08 +0000 (UTC)
From:      Walter Hurry <walterhurry@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: pkg upgrade?
Message-ID:  <k9ij4g$mr6$1@ger.gmane.org>
References:  <k9gigp$uqo$1@ger.gmane.org> <50BC4790.5010707@FreeBSD.org> <k9igqr$1ll$1@ger.gmane.org> <50BCCA1C.7010800@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 03 Dec 2012 15:49:48 +0000, Matthew Seaman wrote:

> On 03/12/2012 15:34, Walter Hurry wrote:
>> $ sudo pkg info -s -F gcc-4.6.4.20121102.txz gcc-4.6.4.20121102 flat
>> size is: 0 B gcc-4.6.4.20121102 package size is: 0 B
> 
> Ah.  It turns out that querying any pkgng package directly for its
> installed size always returns 0 at the moment.  You'ld need to use the
> repo catalogue to get some sort of reasonable answer.  I can't remember
> off hand if pkgs are meant to know what their installed size is; will
> look into that tonight after work.
< snip >

Thanks, Matthew.

pkg query against the .txz file in the cache appears to work though, as 
does pkg info against the installed package:
---------------------------------------------------------------
$ pwd
/var/cache/pkg
$ sudo pkg query -F gcc-4.6.4.20121123.txz %sh
567 MB
$ pkg info -s gcc
gcc-4.6.4.20121123 size is: 567 MB
$
---------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?k9ij4g$mr6$1>