From owner-freebsd-questions@FreeBSD.ORG Mon Dec 3 16:14:29 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 196182EF for ; Mon, 3 Dec 2012 16:14:29 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id B94C78FC15 for ; Mon, 3 Dec 2012 16:14:28 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TfYfF-0006co-5n for freebsd-questions@freebsd.org; Mon, 03 Dec 2012 17:14:37 +0100 Received: from cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com ([86.21.186.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Dec 2012 17:14:37 +0100 Received: from walterhurry by cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Dec 2012 17:14:37 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Walter Hurry Subject: Re: pkg upgrade? Date: Mon, 3 Dec 2012 16:14:08 +0000 (UTC) Lines: 26 Message-ID: References: <50BC4790.5010707@FreeBSD.org> <50BCCA1C.7010800@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Dec 2012 16:14:29 -0000 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 $ ---------------------------------------------------------------