Extract tar.gz  :

tar -xzf namafile.tar.gz

Extract tar.bz2 :

tar -xjvf namafile.tar.bz2

Install dengan cara :

$cd namafolder (masuk ke folder hasil extract)
$./configure
$make
$sudo make install

Sumber : http://ubuntu-indonesia.com/forums/ubbthreads.php/topics/2908/Cara_Install_File_tar_gz