Discussion:
tar : unrecognized archive format
Christ The_worm
2004-11-30 00:04:12 UTC
Permalink
Hi,

I am running on FreeBSD 5.3 and did some ports and packages installation and
everythings works fine. But ... today when i try to untar a *.tar.gz file I
get a " tar : unrecognized archive format " error
I am still able to untar *.tgz files, but no more *.tar.gz ?!?

Did i do something wrong whitout knowing it ;-)

Thanx for your help !

Christophe

Montreal, Qc.
Canada
Greg 'groggy' Lehey
2004-11-30 00:21:08 UTC
Permalink
Post by Christ The_worm
Hi,
I am running on FreeBSD 5.3 and did some ports and packages installation
and everythings works fine. But ... today when i try to untar a *.tar.gz
file I get a " tar : unrecognized archive format " error
I am still able to untar *.tgz files, but no more *.tar.gz ?!?
Did i do something wrong whitout knowing it ;-)
Well, you posted to -newbies instead of -questions. But there's an
easy solution which you can find out there :-)

Greg
--
See complete headers for address and phone numbers.
Wouter van Rooij
2004-11-30 11:56:42 UTC
Permalink
Post by Christ The_worm
Hi,
I am running on FreeBSD 5.3 and did some ports and packages installation
and everythings works fine. But ... today when i try to untar a *.tar.gz
file I get a " tar : unrecognized archive format " error
I am still able to untar *.tgz files, but no more *.tar.gz ?!?
Did i do something wrong whitout knowing it ;-)
This is a newbie problem I think;-)
You have to use the following commands with *.tgz:
gunzip filename
tar -xvf filename ( which changeded to *.tar )
You have to use the following commands with *.tar.gz:
gunzip filename
tar -xvf filename ( which changeded to *.tar )


Wouter van Rooij.

P.S. You could try googling your problem first.
You could also put the file on a page so I could look at it later and
see if it's really damaged or even broken
Conrad J. Sabatier
2004-12-01 05:51:08 UTC
Permalink
On Tue, 30 Nov 2004 12:56:42 +0100, Wouter van Rooij
Post by Wouter van Rooij
Post by Christ The_worm
Hi,
I am running on FreeBSD 5.3 and did some ports and packages
installation and everythings works fine. But ... today when i try
to untar a *.tar.gz file I get a " tar : unrecognized archive
format " error I am still able to untar *.tgz files, but no more
*.tar.gz ?!?
Did i do something wrong whitout knowing it ;-)
This is a newbie problem I think;-)
gunzip filename
tar -xvf filename ( which changeded to *.tar )
gunzip filename
tar -xvf filename ( which changeded to *.tar )
No, actually, you can do it all in one step with tar:

tar xvzf filename

The "z" option tells tar to gunzip first, then untar.
--
Conrad J. Sabatier <***@cox.net> -- "In Unix veritas"
Loading...