Install prog. in ubuntu

lets supose the program name firefox-xx.xx.tar.bz2

After you download the file in the downloads folder

Next, run the commands below to extract the downloaded file. Remember to specify the current version number.   eg. firefox-xx.xx.tar.bz2


tar xjf ~/Downloads/firefox-12.0b4.tar.bz2

 

firefox_precise_1

 

After extracting, move the extracted folder to the /opt/ directory.

sudo mv firefox/ /opt/firefox12

 

firefox_precise_2

 

Next, rename the your current Firefox executable by running the commands below.

sudo mv /usr/bin/firefox /usr/bin/firefox-old

 

firefox_precise_3

 

Finally, run the commands below to create a symbolic link to the newer version.

sudo ln -s /opt/firefox12/firefox /usr/bin/firefox

 

firefox_precise_4

 

Now, try typing firefox in terminal or opening your Firefox launcher icon. You do not need to edit your current firefox launcher to use the newer version.

Enjoy!