-   Linux - Newbie (
-   -   how to unarchive a tar.gz? (

crealkillerI75 08-14-2002 03:02 AM

how to unarchive a tar.gz?
quick and easy question? how to u un-package a tar.gz file?
tar xzvf filename usealy work but some packages dont work?!

ps :list me wat manuals or site i could read so i could un-package just about and file .format? iight
thanx in advance

trickykid 08-14-2002 04:00 AM

Try our glossary link:

Or maybe a:

tar xvf /filename will work..

Mara 08-14-2002 05:09 AM

With .tar.gz 'tar zxvf ....' should work. In other case it gives an error, usually because of broken archive.

neo77777 08-14-2002 08:59 PM

... or old tar version, to add to Mara's reply

ksandre 08-15-2002 11:45 AM

To open a *.tar.gz or *.tgz package use:

gzip -cd <filename>.tar.gz | tar xvf -

(NOTE the hyphen at the end.)

To view the contents w/o opening:

tar -tvzf <filename>

(NOTE - by adding "> somename.txt" to the end, you can get a text file to view for larger archives)

Also note that Mozilla by defaults partially gunzips downloaded archives and you are left with a file named with an *.tgz or tar.gz extention that is NOT that at all - it is usually really a *.tar file, so you would just need to use the second half of the first command to finish the process.

Mara 08-15-2002 12:38 PM


Originally posted by neo77777
... or old tar version, to add to Mara's reply
I've never seen such an error, even with my old Slack 3.4... But it may also happen, I suppose :)

All times are GMT -5. The time now is 03:35 AM.