How to Compile and Install a Tar file in Linux

The .tar file format is derived from the phrase “tape archive”. Developers often use this format to compress and distribute their sources. By doing this, they need not worry about the platform, so anyone on any platform can directly compile and install on their computers. This short guide will teach you how to extract an tar file, compile and then install it on any linux distro.

After you download a .tar file, open Terminal and navigate to the directory where the file exists using ‘cd’ command. Then perform following commands:

xvzf packagename.tar.gz
cd packagename
./configure
make
make install

That’s it. The program should be installed now.


Tags: , , ,
Copyright 2017. All rights reserved.

Posted June 19, 2012 by Santhosh in category "Linux