8

I'm using a Sun Sparc System, aka Solaris. I have a .tar.gz file, and I can't figure out how to untar it. The command I usually use doesn't work:

tar -xzvf file.tar.gz 

Anybody know how to do this? I can't be an answer anywhere!

fixer1234
  • 28,064

2 Answers2

14

You have to gunzip then untar on Solaris. It should come with GNU tar:

gtar xzvf somefile.tar.gz

if that doesn't work:

gunzip -c somefile.tar.gz |tar xvf -
0

For .bzip2 files I used the following procedure:

bunzip2 filename.tar.bz2

This will remove the bz2 extension.

Then

tar -xvf filename.tar

-v only for verbose mode.

alanc
  • 1,084
Tman
  • 71