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

next in thread | previous in thread | raw e-mail | index | archive | help
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
$ 




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