tar.gz install code example
Example 1: how to install tar.gz in ubuntu
Download the desired .tar.gz or (.tar.bz2) file
Open Terminal
Extract the .tar.gz or (.tar.bz2) file with the following commands
tar xvzf PACKAGENAME.tar.gz
tar xvjf PACKAGENAME.tar.bz2
Navigate to the extracted folder using cd command
cd PACKAGENAME
Now run the following command to install the tarball
./configure
make
sudo make install
Example 2: install from tar gz file unix
tar -xzvf filename.tar.gz
Example 3: install tar.bz2 file
tar -xjvf file.tar.bz2
cd file
./configure
make
sudo make install
Example 4: how to install tar.gz in ubuntu
tar -xzf archive-name.tar.gz
cd archive-name
./configure
make
sudo make install
Example 5: 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
Example 6: comment installer tar.gz
sudo make install