[RULE] [Fwd: Re: Disk space used by a package?]

Ingo Lantschner ingo.lists at vum.at
Fri Oct 22 19:11:41 EEST 2004


On Thu, 21 Oct 2004 16:46:07 -0600, Rodolfo J. Paiz <rpaiz at simpaticus.com>  
wrote:


>> Untested whether the info in here is more accurate:
>>
>>   rpm -q --qf "[%{fsnames} %{fssizes}\n]" PACKAGE
I did some very primitive shellscripting to test this out - somehow it  
seems to work:

#!/bin/sh

for rpm in `grep -v '^--'  
/sl/slinky-0.4.05/filesystem/scripts/3/all_packages.disc1`
do
    rpm -qp --qf "[%{fssizes}+]" $rpm >> ~/tmp/ergebnis
done;

This produces under some circumstances (pwd must be FC3-CD, ...) a file  
"ergebnis" which can be opened by openoffice and Ctrl+A > Ctrl++ puts you  
the result into the Clipboard. (May be someone finds a better solutio with  
bc or whatever)

The most important above: You need the -qp switch to query uninstalled  
packages.

Using this script, gives us 662 302 237 Bytes (?) for the list  
all_packages.disc1 from Fanz. Installing this list on a 1 GB drive gave  
errors because of size - strange!? Any idea?!


bye, Ingo.

_______________________________________________
Original home page of the RULE project: www.rule-project.org
Rule-list at rule-project.org
http://mail.rule-project.org/mailman/listinfo/rule-list_rule-project.org



This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here