tar : unrecognized archive format

Conrad J. Sabatier conrads at cox.net
Tue Nov 30 21:51:17 PST 2004


On Tue, 30 Nov 2004 12:56:42 +0100, Wouter van Rooij
<aentgood at gmail.com> wrote:

> >  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 )

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 <conrads at cox.net> -- "In Unix veritas"


More information about the freebsd-newbies mailing list