Click to See Complete Forum and Search --> : .tar.bz2


Tux0r
03-19-2002, 12:14 AM
if i have a .tar.bz2 file...
what do i do?
what commands, and do i need any other files for it to work?

DMR
03-19-2002, 12:24 AM
Some versions of tar understand bzipped files:
tar jxvf file.tar.bz2 or tar Ixvf file.tar.bz2

and some versions don't:
bunzip2 -c file.tar.bz2 | tar xvf -

You might have to install bzip if you haven't already.

Tux0r
03-19-2002, 12:34 AM
thanks.... hope this works.

teeitup
03-19-2002, 12:38 AM
What you have is an archive of files that have been compressed.

tar=general purpose archiving utility
bz2=bzip2 file(s)
gz=gzipped file(s)

You have two options:
1. use bunzip2 to uncompress then tar to unpack the archive.
bunzip2 filename.tar.bz2
tar -xf filename.tar

2.use tar to handle both functions for you.
tar -xyf filename.tar.bz2

The y may change on different distros.
y is used on the Slackware box I have open now.

I'm sure someone here will know if this is true. ?

Having tar is a given.
Most installs will give you bzip2 and gzip utilities by default.

Good Luck,

[ 18 March 2002: Message edited by: teeitup ]