Download the tar file
untar the file
Code:
tar -xvzf foo.tar.gz
cd to the directory created by the untar command
read the readme and install files.
In general
Code:
./configure
make
sudo make install
To avoid problems (dependencies, problems with upgrades, uninstal) first look if the package isn't available in your packetmanager