bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] tar-1.25 got a tarball file lager than the dir


From: Paul Eggert
Subject: Re: [Bug-tar] tar-1.25 got a tarball file lager than the dir
Date: Wed, 22 Dec 2010 19:00:56 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

On 12/22/2010 09:32 AM, xinglp wrote:
> It was created by "cd /usr/share/ && tar -jcf ~/doc.tar.bz2 doc".  I
> notice it was larger than ever before.

> http://wholesalesoffer.com/doc.tar.bz2

That tar file contains multiple copies of many (but not all)
of its files.  For example:

$ tar tvf doc.tar.bz2 | grep doc/tar-1.25/tar.html/verify.html
-rw-r--r-- root/root      7464 2010-12-22 02:21 
doc/tar-1.25/tar.html/verify.html
-rw-r--r-- root/root      7464 2010-12-22 02:21 
doc/tar-1.25/tar.html/verify.html

That explains why the tar file is too big.  When you extract from it,
the later copy overrides the earlier copy, so it's as if the earlier
copy does not exist.

What puzzles me, though is why the command "tar -jcf ~/doc.tar.bz2 doc"
would create a tar file containing multiple copies.  It shouldn't.
If you run the same command again, do you see the same problem with
the tar file?  If so, what is the output of the following?

tar -vjcf ~/doc.tar.bz2 doc

I just tried that, and for me it created a file that was
5,904,974 bytes, or 38,942,720 bytes uncompressed, which
sounds about right.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]