| What to do with a TGZ File |
By a TGZ file we mean a TAR file that was been compressed by GZIP. TGZ or the equivalent TAR.GZ files are often called tarballs. For the gory details about gzip-compressed tar files, you can consult www.gzip.org or this Wikipedia article about gzip files.
Depending on the operating system you are using, there are several tools for uncompressing and untarring these files. At this point it is easier to list what we know works than everything that doesn't:
% tar xcvz file.tgz
or
% gunzip < file.tgz | tar xvf -
The WinGz utility can be downloaded from www.irnis.net. Follow the installation directions provided by this web site.
The GNU Win32 project developed and maintains the BsdTar executable. The GNU Win32 file archive library which includes BsdTar is available at gnuwin32.sourceforge.net. Again, follow the installation directions provided by this web site.
Now the trick to unpack TGZ files on Windows is to first launch WinGZ to uncompress the TGZ file. The result will be a new uncompressed file with the same name as the tarball but with an extension of TAR. Next, launch a DOS window and change the directory to the location of the new TAR file. At the command line, extract the contents this TAR file by typing:
> path\bsdtar.exe file.tar
You will see the extracted contents of the TAR file (including the TAR file) in the current working directory.
Last update: 10 January 2008, S.McLaughlin