[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian archive disk space requirements.



On Mon, Sep 01, 2003 at 12:19:36PM +0200, Goswin von Brederlow wrote:

 > How much space do those 500 odd packages take up?

 I really have no intention to peg the database up with a query like
 that.  Here:

 $ zcat testing{,-proposed-updates}/main/binary-alpha/Packages.gz |
   grep-dctrl -n -s Package -F Architecture -v all |
   sort > ~/tmp/alpha
 $ zcat testing{,-proposed-updates}/main/binary-i386/Packages.gz |
   grep-dctrl -n -s Package -F Architecture -v all |
   sort > ~/tmp/i386
 $ diff -u alpha i386 |
   grep '^\+[^+]' |
   cut -d + -f 2 |
   while read p ; do
     grep-dctrl -n -s Installed-Size -PX $p testing/main/binary-i386/Packages;
   done |
   perl -le '$t+=$_ foreach <>; print $t' # golf anyone? it's an easy one

 Have fun.

 > Given a 50% sizce increase on binaries alpha should have another 1.8G
 > of debs. If those 500 packages make up 1.2G (+50%=1.8G) then the 50%
 > claim would be right.

 Like Richard said, that's hard to believe since not everything in a
 package is a executable.  Anyway:

$ dpkg --contents libc6_2.3.2-4_i386.deb  | grep /lib/libc-2.3.2.so
-rwxr-xr-x root/root   1143024 2003-08-26 13:47:34 ./lib/libc-2.3.2.so
$ dpkg --contents libc6.1_2.3.2-4_alpha.deb | grep /lib/libc-2.3.2.so
-rwxr-xr-x root/root   1586408 2003-08-26 19:47:37 ./lib/libc-2.3.2.so
$ dpkg --contents libc6.1_2.3.2-4_ia64.deb | grep /lib/libc-2.3.2.so
-rwxr-xr-x root/root   2391480 2003-08-26 19:10:55 ./lib/libc-2.3.2.so

-- 
Marcelo



Reply to: