Re: GNU

From: Martin (nospam_at_example.org)
Date: 11/01/03


Date: Sat, 01 Nov 2003 16:50:52 +0000

Sherman H. wrote:

> I am a newbie in Linux. What is the file extension tgz? Do we have a
> standard way to unzip it and make it to work? Thanks.

It's a "tarball": a .tar file that has been gzip'ped.

By force of habit, I tend to say:
        gzip -dc fred.tgz | tar -xvf -
but I think you can also say something like
        tar -zvf fred.tgz
to do the same thing. Type "man tar" and "man gzip" for info. You may also
see fred.tar.bz2 which is similar, but uses bzip2 rather than gzip for the
compression.

After unzipping and untarring, you have an uncompressed version of whatever
files and directories were in the archive. After that, you might typically
have to say:

        cd fred-1.01
        ./configure
        make
        make install

... if the thing you've downloaded is source code for a program of some
kind.

HTH

- Martin.

        



Relevant Pages

  • Re: Question about my boneheaded tar/gzip move.
    ... I'll have enough space to unpack it but it will be tight. ... To save some space, in another xwindow, I started to compress some ... I started to gzip the very tar file I was unpacking! ...
    (comp.unix.admin)
  • Re: How to gzip a largefile bigger than 2 Gb?
    ... Do I have to do something so that gzip understands ... > It's more probable that the .tar file is a tar archive. ... I wanted to gzip the file, not gunzip. ... compressed data not written to a terminal. ...
    (comp.unix.shell)
  • Re: How to gzip a largefile bigger than 2 Gb?
    ... "Sankar" wrote: ... > folllowing error. ... Do I have to do something so that gzip understands ... It's more probable that the .tar file is a tar archive. ...
    (comp.unix.shell)
  • Re: Create Tar files .......
    ... To compress a directory, do the following: ... Make a tar file: ... Compress your tar file with gzip or with bzip2. ... To decompress your archive, do the following: ...
    (alt.os.linux.suse)
  • Re: Backup script to network drive file io problem
    ... > step and I end up with a rather large tar file and a message in my mail ... > saying File Input/Output Error ... Compresses via gzip within tar. ... higher CPU load. ...
    (Debian-User)