From owner-freebsd-questions@FreeBSD.ORG Mon Dec 3 15:50:08 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 3C0F2C0E for ; Mon, 3 Dec 2012 15:50:08 +0000 (UTC) (envelope-from matthew@freebsd.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id BF3148FC08 for ; Mon, 3 Dec 2012 15:50:07 +0000 (UTC) Received: from rufus.webfusion.com (mail.heartinternet.co.uk [79.170.40.31]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id qB3FnnrT045661 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 3 Dec 2012 15:50:03 GMT (envelope-from matthew@freebsd.org) DKIM-Filter: OpenDKIM Filter v2.7.1 smtp.infracaninophile.co.uk qB3FnnrT045661 Authentication-Results: smtp.infracaninophile.co.uk/qB3FnnrT045661; dkim=none reason="no signature"; dkim-adsp=none (insecure policy) X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host mail.heartinternet.co.uk [79.170.40.31] claimed to be rufus.webfusion.com Message-ID: <50BCCA1C.7010800@freebsd.org> Date: Mon, 03 Dec 2012 15:49:48 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Walter Hurry Subject: Re: pkg upgrade? References: <50BC4790.5010707@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org 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 15:50:08 -0000 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. Recommend to use pkg search for querying repo catalogues rather than using sqlite directly, but whatever. Seems there is clearly a bug in calculating the change in disk space usage -- looks like it's added the 500MB flatsize of both package versions together rather than subtracting. Cheers, Matthew