Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-14-2002, 03:02 AM   #1
Registered: Jul 2002
Location: new york
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Question 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
Old 08-14-2002, 04:00 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Try our glossary link:

Or maybe a:

tar xvf /filename will work..
Old 08-14-2002, 05:09 AM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
With .tar.gz 'tar zxvf ....' should work. In other case it gives an error, usually because of broken archive.
Old 08-14-2002, 08:59 PM   #4
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
... or old tar version, to add to Mara's reply
Old 08-15-2002, 11:45 AM   #5
LQ Newbie
Registered: Jul 2002
Location: New Hampshire, USA
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
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.
Old 08-15-2002, 12:38 PM   #6
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,578

Rep: Reputation: 191Reputation: 191
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 14 10-25-2016 03:48 AM
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 11:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 12:02 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 07:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration