Re: a few tar.xz packages are bigger than their uncompressed tar
- Date: Wed, 27 Sep 2017 07:47:42 +0300
- From: Andrey Repin <anrdaemon@xxxxxxxxx>
- Subject: Re: a few tar.xz packages are bigger than their uncompressed tar
Greetings, Jérôme Bouat!
> I looked into the local folder where the downloaded packages are saved
> before they are installed. I noticed that a few compressed archives files
> are using more size than their uncompressed form. For example, the
> libstdc++6-6.4.0-1.tar.xz file uses more space than its uncompressed tar file (on cygwin x86_64).
$ ls -ld "libstdc++6-6.4.0-1.tar.xz" ; tar tf "libstdc++6-6.4.0-1.tar.xz" -v
-rw-r--r-- 1 anrdaemon None 282724 сен 18 20:17 libstdc++6-6.4.0-1.tar.xz
-rwxr-xr-x Blue/None 1367059 2017-09-10 01:23 usr/bin/cygstdc++-6.dll
$ sha512sum.exe libstdc++6-6.4.0-1.tar.xz
# Matches the one in setup.ini
> That is not surprising. All compression methods may sometimes inflate the final amount of data.
> Would it be a way to keep the tar archive file uncompressed if the compressed form needs more space ?
Compression MAY inflate the file, but never by an order of magnitude.
At worst, it will be inflated by the size of metadata describing all blocks in
With best regards,
Wednesday, September 27, 2017 07:43:04
Sorry for my terrible english...