Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

marked as duplicate by Tachyons, Mik, 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.

up vote 2 down vote accepted

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.