tar -xzvf filename.tar.gz
1. Extract it all
2. Come to the folder in which you extracted it
3. ./(filename)
4. make
5. sudo make install
Install .tar.gz or (.tar.bz2) File
Installing a .tar.gz or (.tar.bz2) file is very easy. Ubuntu users can extract the .tar.gz file and compile a program from its source. Follow the steps given below to extract and install tar.gz files in Ubuntu.
It is wise to navigate to the downloaded .tar.bz folder and open and read the README file. It normally has the installation instructions. If not, you can install .tar.gz or (.tar.bz2) file via Terminal.
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
sudo make install