Did you know LQ has a Linux Hardware Compatibility List?
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, 02: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, 03:00 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,147

Rep: Reputation: 229Reputation: 229Reputation: 229
Try our glossary link:

Or maybe a:

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

Rep: Reputation: 160Reputation: 160
With .tar.gz 'tar zxvf ....' should work. In other case it gives an error, usually because of broken archive.
Old 08-14-2002, 07: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, 10: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, 11:38 AM   #6
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,545

Rep: Reputation: 160Reputation: 160
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
tar tar cvf - . | (cd /root/; tar xvf -) ewt3y Linux - General 10 02-19-2014 10:55 AM
a tough question 4 u, problem in extracting tar & tar.gz files p_garg Linux - General 5 11-08-2010 11:02 AM
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 10 02-23-2008 05:40 AM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 12:08 PM
Diferance between rpm, tar, tar.gz, scr.tar, etc mobassir Linux - General 12 08-21-2003 06:30 AM

All times are GMT -5. The time now is 08:59 PM.

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