How to install tar.gz or tar.bz2 file

In this article, we will explain how to install tar.gz or tar.bz2 file in Linux.

1. The first thing you need to do is extract the files from inside the tar archive to a folder.

If it’s tar.gz use

tar xvzf PACKAGENAME.tar.gz

if it’s a tar.bz2 use

tar xvjf PACKAGENAME.tar.bz2

2. Then switch to downloaded folder.

3. Finally run below three commands in Linux.

./configure make sudo make install