Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to unpack a .tar.gz file on Solaris ?

Status
Not open for further replies.

strikelit

MIS
Sep 10, 2003
88
US
I have a tar.gz file that I need to unpack. I tried tar xvf filename and it didnt work.
 
Do a:

gunzip <filename>

It will then get rid of the .gz. Then do a tar -xvf.



[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
gunzip -c file_name.tar.gz |tar xvf -

if you are lazy like me and want it done all at once.
 
djr111 said:
if you are lazy like me and want it done all at once.

...or if you want to retain the original .gz file unmodified and timestamp unchanged, not to mention not having large .tar files lying around that many forget to delete (not looking at any DBAs!!!!). :)

Annihilannic.
 
Depends on what version of tar your are running too. If you have gtar installed there is a compress and decompress flag

/usr/local/bin/tar -xvzf filename.tar.gz

The tar that comes with Solaris.. doe not have compression build in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top