LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-02-2003, 07:58 PM   #1
newbie2linux
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: Redhat 9
Posts: 27

Rep: Reputation: 15
How to Unzip tar.gz Files in Redhat 7.2


I'm having problems unzipping tar.gz files.

I've looked it up on the internet, but whatever I try to do, I keep getting errors when I try to unzip them. I don't know what to do anymore. I'd appreciate it if someone could help me out. Thanks in advance.
 
Old 12-02-2003, 08:03 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
What errors are you getting. The command line syntax is:

tar xzvf filename.tar.gz

Last edited by darthtux; 12-02-2003 at 08:04 PM.
 
Old 12-02-2003, 08:16 PM   #3
newbie2linux
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: Redhat 9
Posts: 27

Original Poster
Rep: Reputation: 15
This is what is displayed after I try and extract it:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
 
Old 12-02-2003, 08:34 PM   #4
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
type,

file <filename>

And see what type that says. It looks at the contents not the extension.
 
Old 12-02-2003, 08:36 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
'file foo.tar.gz'

That should tell you what it really is and you'll be able to apply the correct commands. If that doesn't work, try changing the extension - some apps are picky about that.

-- Oops. Teval got there faster.

Last edited by slakmagik; 12-02-2003 at 08:37 PM.
 
Old 12-02-2003, 08:46 PM   #6
newbie2linux
LQ Newbie
 
Registered: Dec 2003
Location: Canada
Distribution: Redhat 9
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for the suggestions, guys.

One more thing, where do the files that get extracted go once they're exctracted using the aforementioned syntax?
 
Old 12-02-2003, 08:56 PM   #7
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
A new directory is made, inside the current one, or they are extracted straight into the current directory.
 
Old 12-02-2003, 09:54 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Try 'tar tzvf foo.tar.gz' and it'll show the file and directory structure that will be extracted.
 
Old 12-03-2003, 08:59 PM   #9
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Quote:
Originally posted by newbie2linux
This is what is displayed after I try and extract it:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
I have received that error several times. It sounds like the file was corrupted. Try redownloading it.
 
  


Reply



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 to unzip a tar.gz?? abort...retry Linux - Newbie 3 01-02-2005 08:08 AM
is there a simple or easy installer for *.sh files after i unzip *.tar.gz? krt47 Linux - Software 3 07-31-2004 07:38 AM
Where to "unzip" tar files? alaskazimm Linux - Software 5 04-30-2004 11:55 PM
Why can't I unzip a .tar.gz file Dewar Linux - Software 8 09-18-2003 04:07 PM
unzip a tar.gz file klfreese Linux - Newbie 1 07-22-2003 11:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:41 PM.

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
Open Source Consulting | Domain Registration