Disk space used by a package?

Michael Schwendt fedora at wir-sind-cool.org
Thu Oct 21 22:31:55 UTC 2004


On Thu, 21 Oct 2004 15:42:01 -0600, Rodolfo J. Paiz wrote:

> Is there any way I can find out authoritatively how much space a given
> package takes up on disk when installed? The "size" parameter in "rpm -
> qi" is not it, clearly.
> 
> Perhaps if I run "rpm -ql" and then feed that to some command that
> counts bytes or inodes? I realize that there will be a rounding error
> since each file must take up at least one inode on disk, but if I can
> get inode-level (e.g. 4KB) precision then I'll be very happy indeed.
> 
> Thanks for any advice,

Untested whether the info in here is more accurate:

  rpm -q --qf "[%{fsnames} %{fssizes}\n]" PACKAGE

-- 
Fedora Core release 2 (Tettnang) - Linux 2.6.8-1.541
loadavg: 0.11 0.13 0.08




More information about the fedora-test-list mailing list