Mailinglist Archive: opensuse (1746 mails)

< Previous Next >
[SuSE Linux] Bzip2 support (flag 'y') in Gnu tar in SuSE 6.1?



Will the Gnu 'tar' released with SuSE 6.1 have support for bzip archives
(often names like foobar.tar.bz2, compare to foobar.tar.gz)?
So that you can like, extract etc. with commands like:

tar ytvf foobar.tar.bz2
tar yxvf foobar.tar.bz2

Last time (december 1998) I check Gnu's tar, the 'y' flag still had to
be put in with a patch from the bzip2 site.

Eric Maryniak

(fyi: here's my install log of how i built a bzip2 aware Gnu tar
december 1998 (corrections are welcome, but it works for me a 100%),
'+' is your prompt:

Installed bzip2-0.9.0c and patch for Gnu tar 1.12 (reinstall).
Bzip2 is far a better compressor than gzip, and is rapidly gaining
popularity, url: <A HREF="http://www.muraroa.demon.co.uk/";><A HREF="http://www.muraroa.demon.co.uk/</A">http://www.muraroa.demon.co.uk/</A</A>>
Also reinstall Gnu tar 1.12 with a patch which adds the bzip `y' flag.

1. bzip2

+ make

The 4 compare tests must be ok. Install as follows:

+ mv bzip2 bzip2recover /usr/local/bin/.
+ mv bzip2.1 /usr/local/man/man1/.
+ ( cd /usr/local/bin && rm -f bunzip2 bzcat )
+ ( cd /usr/local/bin; ln -s bzip2 bunzip2; ln -s bzip2 bzcat )

2. Gnu tar 1.12 patch.

Get the bzip patch for Gnu tar 1.12:
<A HREF="http://www.muraroa.demon.co.uk/gnutarpatch.txt";><A HREF="http://www.muraroa.demon.co.uk/gnutarpatch.txt</A">http://www.muraroa.demon.co.uk/gnutarpatch.txt</A</A>>
following instructions "4. Using bzip2 with tar" from
<A HREF="http://www.best.com/~dfetter/Bzip2-HOWTO/Bzip2-HOWTO-4.html";><A HREF="http://www.best.com/~dfetter/Bzip2-HOWTO/Bzip2-HOWTO-4.html</A">http://www.best.com/~dfetter/Bzip2-HOWTO/Bzip2-HOWTO-4.html</A</A>>
and given here. Unpack Gnu tar-1.12 source and then:

+ cd tar-1.12/src
+ patch < ../../gnutarpatch.txt
+ cd ..
+ ./configure && make && make install

Flag for bzip is always `y' where you would use `x' for gzip:

tar ycvf foo-4.2.tar.bz2 foo-4.2 (create a bzip-ped tar file)
tar yxvf foo-4.2.tar.bz2 (extract a bzip-ped tar file)
)

--
Eric Maryniak <e.maryniak@xxxxxxxxx>
Home page: <A HREF="http://pobox.com/~e.maryniak/";><A HREF="http://pobox.com/~e.maryniak/</A">http://pobox.com/~e.maryniak/</A</A>>
Netherlands Institute for Scientific Information Services (NIWI)
Tel/Fax: +31 20 4628650/6685079. Internet: <A HREF="http://www.niwi.knaw.nl/";><A HREF="http://www.niwi.knaw.nl/</A">http://www.niwi.knaw.nl/</A</A>>

Isn't air travel wonderful?
Breakfast in London, dinner in New York, luggage in Brazil.

--
To get out of this list, please send email to majordomo@xxxxxxxx with
this text in its body: unsubscribe suse-linux-e
Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/";><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the
archive at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html";><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>


< Previous Next >
Follow Ups