[Top][All Lists]

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

Re: [Bug-tar] Append and Bzip2 Incompatibility

From: Tim Kientzle
Subject: Re: [Bug-tar] Append and Bzip2 Incompatibility
Date: Sat, 13 Jun 2009 11:36:22 -0700
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv: Gecko/20090601 SeaMonkey/1.1.16

Sean B. Palmer wrote:
It does not appear that -r works in conjunction with -j:
Are they really incompatible? Or is the functionality of using them
together just broken? Note that -A and -j don't appear to work
together either.

Practically speaking, they are fundamentally incompatible.

"In theory", bzip2 compression could handle in-place
modification, but it would require that tar have deep specific
knowledge of bzip2 compression.  (It would have to know
how to locate bzip2 compressed blocks, decompress and
modify the final block(s) and then append new blocks.)

If you really need this, you might try bsdtar.
It has a "streaming update" capability that can read
an archive from one file, modify it on the fly and
write the result to another file.  This can handle
routine "append" and "remove" operations even with
compressed archives.

Tim Kientzle

reply via email to

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