Re: openoffice.org-i18n 615 megabytes!!!

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

 



On Fri, 2004-10-22 at 18:30, Rodolfo J. Paiz wrote:
> On Fri, 2004-10-22 at 16:51 +0100, Paul Howarth wrote:
> > $ rpm -q --queryformat 'Size of installed %{NAME}-%{VERSION}-%{RELEASE} 
> > package is %{SIZE}\n' openoffice.org-i18n
> > 
> > Size of installed openoffice.org-i18n-1.1.2-10.fc2 package is 645914570
> > 
> 
> Paul,
> 
> Are you 100% sure that the %{SIZE} parameter represents the amount of
> bytes it is expected to take on disk when installed? Really really and
> utterly sure?
> 
> I'm not so worried about OpenOffice, but I have a need to determine the
> space on disk which a package *will take when installed* for my work on
> the minimal install package list.

I suspect it's actually the sum of the sizes of all the files in the
package rather than the space that would be taken on the disk, since
that would depend on the filesystems in use. It should be easy enough to
verify by looking at a small package:

$ rpm -q --queryformat 'Size of installed %{NAME}-%{VERSION}-%{RELEASE}
package is %{SIZE}\n' fedora-release
Size of installed fedora-release-2-4 package is 272656

$ rpm -qlv fedora-release
-rw-r--r--    1 root    root               33 May 11 20:10
/etc/fedora-release
-rw-r--r--    1 root    root               53 May 11 20:10 /etc/issue
-rw-r--r--    1 root    root               52 May 11 20:10
/etc/issue.net
lrwxrwxrwx    1 root    root               14 May 11 20:10
/etc/redhat-release -> fedora-release
drwxr-xr-x    2 root    root                0 May 11 20:10
/usr/share/doc/HTML
drwxr-xr-x    2 root    root                0 May 11 19:49
/usr/share/doc/HTML/css
-rw-r--r--    1 root    root             3008 Mar 22  2004
/usr/share/doc/HTML/css/content.css
-rw-r--r--    1 root    root             1237 Mar 22  2004
/usr/share/doc/HTML/css/docbook.css
-rw-r--r--    1 root    root             7395 Mar 22  2004
/usr/share/doc/HTML/css/layout.css
-rw-r--r--    1 root    root             1216 Mar 22  2004
/usr/share/doc/HTML/css/print.css
drwxr-xr-x    2 root    root                0 May 11 19:49
/usr/share/doc/HTML/img
-rw-r--r--    1 root    root              340 Mar 22  2004
/usr/share/doc/HTML/img/corner-bl.png
-rw-r--r--    1 root    root              346 Mar 22  2004
/usr/share/doc/HTML/img/corner-br.png
-rw-r--r--    1 root    root              331 Mar 22  2004
/usr/share/doc/HTML/img/corner-tl.png
-rw-r--r--    1 root    root              374 Mar 22  2004
/usr/share/doc/HTML/img/corner-tr.png
-rw-r--r--    1 root    root             1170 Mar 22  2004
/usr/share/doc/HTML/img/header-download.png
-rw-r--r--    1 root    root             2089 Mar 22  2004
/usr/share/doc/HTML/img/header-faq.png
-rw-r--r--    1 root    root             2206 Mar 22  2004
/usr/share/doc/HTML/img/header-fedora_logo.png
-rw-r--r--    1 root    root             1224 Mar 22  2004
/usr/share/doc/HTML/img/header-projects.png
-rw-r--r--    1 root    root            69716 May 11 20:10
/usr/share/doc/HTML/index.html
drwxr-xr-x    2 root    root                0 May 11 20:10
/usr/share/doc/fedora-release-2
-rw-r--r--    1 root    root            18385 May 11 19:49
/usr/share/doc/fedora-release-2/GPL
-rw-r--r--    1 root    root            12667 May 11 19:49
/usr/share/doc/fedora-release-2/README-Accessibility
-rw-r--r--    1 root    root             5299 May 11 19:49
/usr/share/doc/fedora-release-2/README-x86-en
-rw-r--r--    1 root    root             7465 May 11 19:49
/usr/share/doc/fedora-release-2/README-x86-en.html
-rw-r--r--    1 root    root            47589 May 11 19:49
/usr/share/doc/fedora-release-2/RELEASE-NOTES-x86-en
-rw-r--r--    1 root    root            67109 May 11 19:49
/usr/share/doc/fedora-release-2/RELEASE-NOTES-x86-en.html
-rw-r--r--    1 root    root             1910 May 11 19:49
/usr/share/doc/fedora-release-2/RPM-GPG-KEY
-rw-r--r--    1 root    root             1706 May 11 19:49
/usr/share/doc/fedora-release-2/RPM-GPG-KEY-beta
-rw-r--r--    1 root    root             1519 May 11 19:49
/usr/share/doc/fedora-release-2/RPM-GPG-KEY-fedora
-rw-r--r--    1 root    root             1105 May 11 19:49
/usr/share/doc/fedora-release-2/RPM-GPG-KEY-fedora-rawhide
-rw-r--r--    1 root    root             1076 May 11 19:49
/usr/share/doc/fedora-release-2/RPM-GPG-KEY-fedora-test
-rw-r--r--    1 root    root             1232 May 11 19:49
/usr/share/doc/fedora-release-2/RPM-GPG-KEY-rawhide
-rwxr-xr-x    1 root    root              248 May 11 19:49
/usr/share/doc/fedora-release-2/autorun-template
-rw-r--r--    1 root    root             5611 May 11 19:49
/usr/share/doc/fedora-release-2/eula.txt
-rw-r--r--    1 root    root             5611 May 11 20:10
/usr/share/eula/eula.en_US
-rw-r--r--    1 root    root             3334 May 11 20:10
/usr/share/firstboot/modules/eula.py

$ rpm -qlv fedora-release | awk '{ size += $5 } END { print size }'
272670

The difference in size here (272656 vs. 272670) could be accounted for
by the 14 bytes used by the symlink /etc/redhat-release ->
fedora-release, which perhaps the RPM "SIZE" field doesn't include?

So if you wanted to calculate the actual space taken on disk, you'd need
to round up the size of each file in the package to the next multiple of
the block size for the filesystem that file would be installed on. This
could be made more complicated by the fact that some filesystems (e.g. I
think ReiserFS) may have variable block sizes to handle lots of small
files efficiently.

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux