LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-14-2002, 03:02 AM   #1
crealkillerI75
Member
 
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
CRK175
 
Old 08-14-2002, 04:00 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Try our glossary link: http://www.linuxquestions.org/questi...ryid=35&long=1


Or maybe a:

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

Rep: Reputation: 149Reputation: 149
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
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
... or old tar version, to add to Mara's reply
 
Old 08-15-2002, 11:45 AM   #5
ksandre
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
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,539

Rep: Reputation: 149Reputation: 149
Quote:
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
 
  


Reply


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 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
how can i decompress this tar.tar file? hmmm sounds new.. tar.tar.. help ;) kublador Linux - Software 10 02-23-2008 06:40 AM
.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


All times are GMT -5. The time now is 10:37 AM.

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