A TGZ file is a file archive in TAR (tape archive) file format that has been compressed by the GZIP (GNU Zip) program. The TGZ file format is very common in Linux and Unix environments, but it's rarely used in the Windows environment. In general, the files extracted from a TGZ file are only usable within a Linux or Unix environment because they were originally created and archived on a Linux or Unix. With the right programs, it is easy to unpack a TGZ file.
If you're in a Unix environment, run "gzip" from the command line to make sure it exists. If not, download and install GNU ZIP (gzip.org).
Video of the Day
If you're in an Unix environment, run "tar" (without quotes) from the Command Line to make sure it exists. If not, download and install GNU TAR (gnu.org/software/tar).
If you're in an Unix environment, copy or move the TGZ file to an empty directory. If this is not done, the files and directories from the TGZ archive will be mixed with the pre-existing files in the current directory.
In a Unix environment, unpack with the following command:
gtar xvzf file.TGZ
Or run the following two commands:
gzip -d file.tgz tar xvf file.tar
If you're in a Windows environment without a Unix shell such as Cygwin, the quickest way to get a TGZ file unpacked is to download and install one of several Unzip programs capable of unpacking TGZ files. Installing Cygwin will take much longer than installing a Windows-based Unzip program.
In some older Unix environments, the TAR command that comes with the operating system may be too outdated to deal with the TGZ or the resulting TAR file. In those cases, the easiest solution is to install GNU TAR, which will be an updated version of TAR.