Help - Search - Members - Calendar
Full Version: uncompress ...tar.bz ??
The Planet Forums > System Administration > Server Hardware > RaQ Support
Coastie
I have been trying to decompress a tar.bz2 file, and I just can't get the syntax right.

I Know I can use tar xvzf filename.tar.gz to uncompress a tar.gz file, but that does not help me with tar.bz2 files.

I read somewhere to replace the f with j to have tar xvzj filename.tar.bz2 but that did not work either.

what is the syntax to uncompress a tar.bz2 file?

Thank You,
Coastie
Just wanted to add:

I'd like to uncompress and untar all in one step.

This is on a RAQ4 running what appears to be bunzip Version 0.9.5d, 4-Sept-99
Coastie
Ahh, there it is

tar Ixvf whatever.tar.bz2


Should I think about upgrading to a 1.x release?
instantnet
?

[root@secure1 addons]# tar Ixvf glibc-2.3.4.tar.bz2
tar: Warning: the -I option is not supported; perhaps you meant -j or -T?
Try `tar --help' for more information.
aussie
QUOTE (Coastie)
I have been trying to decompress a tar.bz2 file, and I just can't get the syntax right.

I Know I can use tar xvzf filename.tar.gz to uncompress a tar.gz file, but that does not help me with tar.bz2 files.

I read somewhere to replace the f with j to have tar xvzj filename.tar.bz2 but that did not work either.

what is the syntax to uncompress a tar.bz2 file?

Thank You,


/usr/bin/bunzip2
then
tar -zxvf
Quiddity
tar -jxvf filename.tar.bz2

From the tar man page:

"-j, -I, --bzip
filter the archive through bzip2. Note: -I is deprecated and may get a different meaning in the near future."

- Steve
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.