download tar.gz file on linux code example
Example 1: install from tar gz file unix
tar -xzvf filename.tar.gz
Example 2: how to extract tar.gz
If your tar file is compressed using a gzip compressor, use the following command to extract it.
$ tar xvzf file.tar.gz
If your tar file is compressed using a bZip2 compressor, use the following command to extract it.
$ tar xvjf file.tar.bz2