Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Nov 2004 23:51:08 -0600
From:      "Conrad J. Sabatier" <conrads@cox.net>
To:        Wouter van Rooij <aentgood@gmail.com>
Cc:        freebsd-newbies@freebsd.org
Subject:   Re: tar : unrecognized archive format
Message-ID:  <20041130235108.2684c043@dolphin.local.net>
In-Reply-To: <7603e5d804113003567e9b2824@mail.gmail.com>
References:  <BAY17-F42C3567E230C15D96C506FA3BE0@phx.gbl> <20041130002108.GH48369@wantadilla.lemis.com> <7603e5d80411300355684bbf72@mail.gmail.com> <7603e5d804113003567e9b2824@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 30 Nov 2004 12:56:42 +0100, Wouter van Rooij
<aentgood@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@cox.net> -- "In Unix veritas"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041130235108.2684c043>