From: "Nico Kadel-Garcia" <nkadel@bellatlantic.net>
Subject: Re: Gunzip and Tar
Date: Wed, 14 Aug 2002 12:09:29 GMT [thread overview]
Message-ID: <ZLr69.23201$Ue7.5109@nwrddc02.gnilink.net> (raw)
In-Reply-To: 5601c052.0208140357.3c46c571@posting.google.com
"Scott Skinnider" <scott.skinnider@ensny.com> wrote in message
news:5601c052.0208140357.3c46c571@posting.google.com...
> Dave Uhring <dmuhring@yahoo.com> wrote in message
news:<ulivdjl2vp799a@corp.supernews.com>...
> > Scott Skinnider wrote:
> >
> > > Excuse the ignorance, I am kind of new to unix. I am trying to unpack
> > > and install BB on Tru64, I am having a bit of trouble untar'ing the
> > > files. it seems the commands I am using don't work.
> > > gunzip -c filename | tar -xf
> >
> > gunzip produces no standard output; therefore the pipe will not work.
> > Either
> >
> > gunzip filename.tar.gz; tar xf filename.tar
> >
> > or gzip -cd filename.tar.gz | tar xf -
> >
> > BTW, depending on which version of tar you have, if you insist on using
> > the - for your options it may be necessary to have the - for each
> > option; i.e., tar -x -f.
>
> Thanks Dave,
> Scott
Except that Dave left out a bit.
"gzip -c" produces stdout output. But it's trying to *compress*
filename.tar.gz. It's the "gzip -dc" that says to *oncompress* the file.
Most of us use "gzcat filename.tar.gz | tar xf -", where gzcat is a shortcut
name for "gzip -dc". Others of us use the GNU version of tar from the RPM
package from Compaq and use "gtar -xf filename.tar.gz". The GNU version is
generally wildly superior to the default version on almost every UNIX
variant because of its internal handling of these sorts of things, and its
better behavior when descending a directory and failing to read a single
file.
next prev parent reply other threads:[~2002-08-14 12:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-13 18:31 Gunzip and Tar Scott Skinnider
2002-08-13 21:44 ` Dave Uhring
2002-08-14 11:57 ` Scott Skinnider
2002-08-14 12:09 ` Nico Kadel-Garcia [this message]
2002-08-14 20:55 ` Dave Uhring
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox