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 09-01-2002, 11:00 PM   #1
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
tar -zxvf *.tgz


I don't know if i am doing something totally wrong, but for some reason, i can't get gunzip or tar -z to extract .tgz files. ex:

[/usr/src/blfs][08:00:35]> ls | grep .tgz
-h.tgz
Python-2.2.1.tgz
X420src-1.tgz
X420src-2.tgz
X420src-3.tgz
docbookx412.tgz
[/usr/src/blfs][08:00:41]> tar -zxvf docbookx412.tgz

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
[/usr/src/blfs][08:01:04]> gunzip docbookx412.tgz

gunzip: docbookx412.tgz: not in gzip format

What am i doing wrong? Anything i should send to configure when installing gzip? any patches that i need? Please help, i'm sick of having to boot to r.h. everytime i get a .tgz file!!!
 
Old 09-02-2002, 01:19 AM   #2
Goatdemon
Member
 
Registered: May 2002
Location: The good 'ol USofA
Distribution: ArchLinux - Slackware 8.1
Posts: 398

Rep: Reputation: 30
tar xzvf docbookx412.tgz try this and once without the v
 
Old 09-02-2002, 02:31 AM   #3
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
run file against the archives to be sure it is compressed tar archives.
 
Old 09-02-2002, 03:50 AM   #4
meat-head
LQ Newbie
 
Registered: May 2002
Location: Tampa
Distribution: Slackware 9.1
Posts: 21

Rep: Reputation: 15
is this a file you downloaded through a browser... some browsers have a setting to unzip downloaded files then don't change the file name... try tar xvf *.tgz withouth the z...
 
Old 09-02-2002, 11:34 AM   #5
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
Are you using Slakware? The only .tgz files I have seen are Slackware packages designed to be installed with pkgtool. All the regular files have been a .tar.gz
 
Old 09-02-2002, 12:26 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
the file is probably only a tar, not tar.gz
 
Old 09-02-2002, 05:09 PM   #7
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Original Poster
Rep: Reputation: 30
thanks a lot guys. yeah, it turns out that they were just plain old tar archives. It even started happening to .tar.gz files... i was installing gnome, and none of my files would decomplress!!! I had to go and get them via ftp, and that was a pain. I think i am going to turn off that option in my browser. i don't like things going on behind the scenes, that's why i switched to linux!
 
Old 09-02-2002, 05:35 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
rah, acid kewpie chalks up another one. yeah i don't know why some packages are distributed like that , more and more of them. i guess it's just plain laziness...
 
Old 09-03-2002, 01:30 AM   #9
meat-head
LQ Newbie
 
Registered: May 2002
Location: Tampa
Distribution: Slackware 9.1
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
rah, acid kewpie chalks up another one. yeah i don't know why some packages are distributed like that , more and more of them. i guess it's just plain laziness...
hey i thought i got it first! well i'm chalkin it up anyway
 
Old 09-03-2002, 05:25 AM   #10
dwd
Member
 
Registered: Aug 2002
Distribution: RedHat / Debian / Ubuntu
Posts: 35

Rep: Reputation: 15
For future reference, the "file" command will tell you what format a file is in, if it knows. I usually use it in exactly this circumstance.
 
  


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
gave wrong syntax for tar as tar -cvzf file file.tgz how to recover the file gautham Linux - General 4 04-13-2005 04:15 AM
what's up with swaret.tgz.tar darkleaf Slackware 15 02-25-2005 08:25 PM
tar zxvf and slackware 10.0 paul62 Slackware 5 09-25-2004 12:25 PM
.rpms, .tar.gz, .tgz, .src.rpm, & .tar.bz2 whoots Mandriva 10 10-18-2003 01:08 PM
.tgz or .tar.gz c0c0deuz Linux - General 9 12-14-2001 11:37 AM


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