From owner-freebsd-questions@FreeBSD.ORG Mon Dec 3 15:35: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 6966C640 for ; Mon, 3 Dec 2012 15:35:08 +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 05E808FC0C for ; Mon, 3 Dec 2012 15:35:07 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TfY38-0006We-Nd for freebsd-questions@freebsd.org; Mon, 03 Dec 2012 16:35:14 +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 16:35:14 +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 16:35:14 +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 15:34:51 +0000 (UTC) Lines: 110 Message-ID: References: <50BC4790.5010707@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 15:35:08 -0000 On Mon, 03 Dec 2012 06:32:48 +0000, Matthew Seaman wrote: > On 02/12/2012 21:51, Walter Hurry wrote: >> Copied from terminal and pasted here: >> -------------------------------------------------------------- >> $ sudo pkg upgrade Updating repository catalogue Repository catalogue >> is up-to-date, no need to fetch fresh copy The following packages will >> be upgraded: >> >> Upgrading gcc: 4.6.4.20121102 -> 4.6.4.20121123 >> >> The installation will free 1 GB >> >> 88 MB to be downloaded >> >> Proceed with upgrading packages [y/N]: y gcc-4.6.4.20121123.txz >> 100% 88MB 6.8MB/s 6.0MB/s 00:13 Checking integrity... done >> Upgrading gcc from 4.6.4.20121102 to 4.6.4.20121123... done $ >> -------------------------------------------------------------- >> OK, fine. But what's this about 1GB being freed? > > That's what pkg has calculated as the change in disk space usage > resulting from replacing one version by another. It certainly looks > suspicious on the face of it: given the package size of 88MB and > presuming the previous package wasn't orders of magnitude different in > size it's hard to see where that size of change would come from. > > Do you still have the gcc-4.6.4.20121102 package around look in > /var/cache/pkg/All)? Can you try > > pkg info -s -F gcc-4.6.4.20121102.txz > > and > > pkg info -s -F gcc-4.6.4.20121123.txz > > please? > Curiouser and curiouser. This is from another machine, with gcc not yet upgraded but otherwise identical: -------------------------------------------------------------- $ cd /var/cache/pkg $ cd All cd: All: No such file or directory $ ls -l gcc* -rw------- 1 root wheel 92395460 29 Nov 15:22 gcc-4.6.4.20121102.txz -rw------- 1 root wheel 4360 29 Nov 15:32 gccmakedep-1.0.2.txz $ 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 $ cd /var/db/pkg $ sqlite3 local.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select version, flatsize from packages where name = 'gcc'; 4.6.4.20121102|596779179 sqlite> .quit $ sqlite3 repo.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select version, pkgsize, flatsize from packages where name = 'gcc'; 4.6.4.20121102|92395460|596779179 sqlite> .quit $ sudo pkg update Updating repository catalogue repo.txz 100% 261KB 260.9KB/s 260.9KB/s 00:00 $ sqlite3 repo.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select version, pkgsize, flatsize from packages where name = 'gcc'; 4.6.4.20121123|92316676|595326810 sqlite> .quit $ sudo pkg upgrade Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be upgraded: Upgrading gcc: 4.6.4.20121102 -> 4.6.4.20121123 The installation will free 1 GB 88 MB to be downloaded Proceed with upgrading packages [y/N]: y gcc-4.6.4.20121123.txz 100% 88MB 6.8MB/s 10.7MB/s 00:13 Checking integrity... done Upgrading gcc from 4.6.4.20121102 to 4.6.4.20121123... done $ sqlite3 local.sqlite SQLite version 3.7.14.1 2012-10-04 19:37:12 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select version, flatsize from packages where name = 'gcc'; 4.6.4.20121123|595326810 sqlite> .quit $ cd /var/cache/pkg $ ls -l gcc* -rw------- 1 root wheel 92395460 29 Nov 15:22 gcc-4.6.4.20121102.txz -rw------- 1 root wheel 92316676 3 Dec 14:46 gcc-4.6.4.20121123.txz -rw------- 1 root wheel 4360 29 Nov 15:32 gccmakedep-1.0.2.txz $ sudo pkg info -s -F gcc-4.6.4.20121123.txz gcc-4.6.4.20121123 flat size is: 0 B gcc-4.6.4.20121123 package size is: 0 B $