Possible Duplicate:
How to install a .tar.gz (or .tar.bz2) file?

I had already tried many things but none of them worked. I've tried tar xzf file.tar.gz(replacing file by the package name). I'm using 12.04.1 precise pangolin.

marked as duplicate by Tachyons, user76204, ajmitch, RolandiXor, stephenmyall Nov 14 '12 at 19:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


Untar the file using command

 tar xjvf tarball_package.tar.bz2


 tar xzvf tarball_package.tar.gz

If there is a .deb(Precompiled binaries) file in the extracted package. You can install it using command dpkg -i package_name.deb

If its a source file then you need to compile it using the following commands.

make install

For more information read this Ubuntu help page