* Gunzip and Tar
@ 2002-08-13 18:31 Scott Skinnider
2002-08-13 21:44 ` Dave Uhring
0 siblings, 1 reply; 5+ messages in thread
From: Scott Skinnider @ 2002-08-13 18:31 UTC (permalink / raw)
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
any help is greatly appreciated.
Scott
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gunzip and Tar
2002-08-13 18:31 Gunzip and Tar Scott Skinnider
@ 2002-08-13 21:44 ` Dave Uhring
2002-08-14 11:57 ` Scott Skinnider
0 siblings, 1 reply; 5+ messages in thread
From: Dave Uhring @ 2002-08-13 21:44 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gunzip and Tar
2002-08-13 21:44 ` Dave Uhring
@ 2002-08-14 11:57 ` Scott Skinnider
2002-08-14 12:09 ` Nico Kadel-Garcia
0 siblings, 1 reply; 5+ messages in thread
From: Scott Skinnider @ 2002-08-14 11:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gunzip and Tar
2002-08-14 11:57 ` Scott Skinnider
@ 2002-08-14 12:09 ` Nico Kadel-Garcia
2002-08-14 20:55 ` Dave Uhring
0 siblings, 1 reply; 5+ messages in thread
From: Nico Kadel-Garcia @ 2002-08-14 12:09 UTC (permalink / raw)
"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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Gunzip and Tar
2002-08-14 12:09 ` Nico Kadel-Garcia
@ 2002-08-14 20:55 ` Dave Uhring
0 siblings, 0 replies; 5+ messages in thread
From: Dave Uhring @ 2002-08-14 20:55 UTC (permalink / raw)
Nico Kadel-Garcia wrote:
> 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.
GNUtar has one serious limitation which can occasionally cause problems.
It cannot deal with a filename (including path) of more than 100
characters.
Not that I do not use it. That utility is one of the first I install on
a real Unix machine ;-)
Also, "gtar -xf filename.tar.gz", unfortunately will not de-compress the
file and extract it. You must use gtar zxf filename.tar.gz. No dashes
required either.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-08-14 20:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2002-08-14 20:55 ` Dave Uhring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox