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

Re: `du' control files



sanvila@unex.es (Santiago Vila)  wrote on 13.02.98 in <[🔎] Pine.LNX.3.96.980213190526.2118A-100000@cantor.unex.es>:

> On 13 Feb 1998, Davide G. M. Salvetti wrote:
>
> > They are useful to check how much disk space is needed under each
> > directory before installing a package;
>
> Are you *so* short of disk space that the standard head:
>
> Installed-Size: 200
>
> is not enough?

How could it possibly be enough for anyone using more than a single  
partition?

Take this a step further. Say I plan installing a new Debian system, and I  
have in mind a partitioning scheme. How do I find out how large to make my  
partitions? Installed-Size: is not going to be any help here at all.

What I'd want is, for each directory in a package that directly contains  
at least one regular file, and that is not contained in any other such  
directory, the total used size if it's installed on an ext2 fs with  
default block size.

For example, let's look at man-db:

Script started on Sat Feb 14 00:23:15 1998
khms# dpkg --listfiles man-db
/.
/etc
/etc/cron.daily
/etc/cron.daily/man-db
/etc/cron.weekly
/etc/cron.weekly/man-db
/etc/manpath.config
/usr
/usr/bin
/usr/bin/man
/usr/bin/mandb
/usr/bin/manpath
/usr/bin/catman
/usr/bin/whatis
/usr/bin/apropos
/usr/bin/zsoelim
/usr/sbin
/usr/sbin/accessdb
/usr/sbin/mkcatdirs
/usr/sbin/chmanconfig
/usr/man
/usr/man/man1
/usr/man/man1/apropos.1.gz
/usr/man/man1/whatis.1.gz
/usr/man/man1/zsoelim.1.gz
/usr/man/man1/man.1.gz
/usr/man/man1/manpath.1.gz
/usr/man/man5
/usr/man/man5/manpath.5.gz
/usr/man/man8
/usr/man/man8/mandb.8.gz
/usr/man/man8/catman.8.gz
/usr/man/de
/usr/man/de/man1
/usr/man/de/man1/apropos.1.gz
/usr/man/de/man1/whatis.1.gz
/usr/man/de/man1/zsoelim.1.gz
/usr/man/de/man1/man.1.gz
/usr/man/de/man1/manpath.1.gz
/usr/man/de/man5
/usr/man/de/man5/manpath.5.gz
/usr/man/de/man8
/usr/man/de/man8/mandb.8.gz
/usr/man/de/man8/catman.8.gz
/usr/man/it
/usr/man/it/man1
/usr/man/it/man1/apropos.1.gz
/usr/man/it/man1/whatis.1.gz
/usr/man/it/man1/zsoelim.1.gz
/usr/man/it/man1/man.1.gz
/usr/man/it/man1/manpath.1.gz
/usr/man/it/man5
/usr/man/it/man5/manpath.5.gz
/usr/man/it/man8
/usr/man/it/man8/mandb.8.gz
/usr/man/it/man8/catman.8.gz
/usr/share
/usr/share/locale
/usr/share/locale/it
/usr/share/locale/it/man_db.cat
/usr/share/locale/de
/usr/share/locale/de/man_db.cat
/usr/share/locale/en
/usr/share/locale/en/man_db.cat
/usr/lib
/usr/lib/menu
/usr/lib/menu/man-db
/usr/doc
/usr/doc/man-db
/usr/doc/man-db/ChangeLog.gz
/usr/doc/man-db/NEWS.gz
/usr/doc/man-db/man-db-manual.html
/usr/doc/man-db/.dwww-index
/usr/doc/man-db/changelog.Debian.gz
/usr/doc/man-db/ToDo
/usr/doc/man-db/copyright
/usr/doc/man-db/README.gz
/usr/doc/man-db/man-db-manual.txt.gz

khms# exit
Script done on Sat Feb 14 00:23:31 1998

The above rule means that this package would list space usage in these  
directories:

/etc
/usr/bin
/usr/sbin
/usr/man{,/{de,it}}/man{1,5,8}
/usr/share/locale/{it,de,en}
/usr/lib/menu
/usr/doc/man-db

It's a little extreme because of the multiple language support.


MfG Kai


Reply to: