LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2004, 06:01 AM   #1
ssmaitra
LQ Newbie
 
Registered: Nov 2003
Location: New Delhi, India
Distribution: Fedora Core 4
Posts: 24

Rep: Reputation: 15
Question Problem in unziping tarballs


I have a tarball filename.tar
I have tried tar xvzf filename.tar
I have tried tar -xvzf filename.tar
In both cases I get the following error
gzip: stdin not in gzip format
tar: Child returned with status 1
tar: Error exit delayed from previous errors


I tried file filename.tar and got the following message
filename.tar: GNU tar archive

Now here is the cliche
I used the Archiving tool available with Red Hat 8.0 and it extracted the tarball with absolutely no problem. The software is also working perfectly.
Why am I unable to extract this archive through the command line

Last edited by ssmaitra; 02-28-2004 at 06:02 AM.
 
Old 02-28-2004, 06:04 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Is it a zipped tarbal or just a tarbal?? The tar extension suggest it not being 'zipped', just packed.

Did you try:

$ tar xf filename.tar

Hope this helps.
 
Old 02-28-2004, 08:03 AM   #3
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
It's not a gzipped tarball, hence you don't need the -z switch:
$ tar xvf filename.tar
[and you don't actually need the -v and -f swithces, but they're kinda useful]
 
Old 02-28-2004, 08:26 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
You do need the -f option, otherwise tar won't read from file but from a standard 'tape' device. You are correct about the -v options. Just shows verbose info about what tar is doing.
 
Old 02-28-2004, 08:50 AM   #5
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
Whoops, thanks druuna. Forgot that [I just do it automatically now that I forget what some of the options do]
 
Old 02-28-2004, 01:08 PM   #6
ssmaitra
LQ Newbie
 
Registered: Nov 2003
Location: New Delhi, India
Distribution: Fedora Core 4
Posts: 24

Original Poster
Rep: Reputation: 15
Thanks a lot to all who answered my querry. I followed the suggestions and the suggested solutions worked fine. This thread may now be terminated.
 
  


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
install tarballs problem browser Slackware 9 04-16-2005 09:07 AM
unziping bz2 files Rodotheos Linux - Newbie 4 04-05-2005 05:17 PM
Opening/Unziping .tar.gz files java999 Linux - Software 5 09-25-2004 12:17 PM
Tarballs Carlip Linux - Distributions 3 08-21-2003 02:47 PM
Unziping tar.gz flies Darkangel90 Linux - General 6 06-08-2002 05:57 PM


All times are GMT -5. The time now is 03:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration