Coastie
Oct 5 2002, 04:53 PM
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
Oct 5 2002, 05:27 PM
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
Oct 5 2002, 05:33 PM
Ahh, there it is
tar Ixvf whatever.tar.bz2
Should I think about upgrading to a 1.x release?
instantnet
Oct 5 2005, 10:16 AM
?
[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
Oct 5 2005, 10:24 AM
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
Oct 5 2005, 11:16 AM
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.