Here is an easy step-by-step guide for all those who want to upgrade or install the latest Firefox 3.6.3 on Ubuntu. All you need is to download Firefox setup and place it into your Ubuntu's home directory. After placing setup into your home directory, just copy-paste the given scripts in your terminal and it will automatically upgrade your Firefox to the latest version within a matter of seconds. Not only Firefox 3.6.3 but you can use the same procedure for upgrading your stock Firefox to the future Firefox releases.
Steps To Upgrade To Firefox 3.6.3 In Ubuntu:
- Download Mozilla Firefox 3.6.3 [Linux] from here and save it on your desktop. Once download is finished, right-click on firefox-3.6.3.tar.bz2 and choose CUT, now navigate to Places->Home Folder in the top-panel bar and PASTE the file in the home directory as shown in the screenshot below:
- Check the current version of your Firefox by navigating to Help->About Mozilla Firefox
- If you have already updated your Firefox in past then use the following command at your terminal else jump to CASE II:
- Open Terminal by navigating to Applications->Accessories and use the following command at terminal
- After copying and pasting the above command at terminal, you will be asked to enter your root password.
- Thats it! Now you have got the latest version of Firefox.
CASE I : You Have Previously Updated Mozilla Firefox
sudo rm /usr/bin/firefox && sudo dpkg-divert --rename --remove /usr/bin/firefox && sudo rm -r /opt/firefox
So what the above command will do? It will restore your updated Firefox to stock version of Firefox. The terminal command in CASE II will only update stock Firefox to the latest one. After using the above script, proceed to CASE II below:
CASE II : You Never Updated Firefox In Past
if [[ ! -f /usr/bin/firefox ]]; then sudo apt-get update && sudo apt-get install firefox; fi && if [[ -e ~/.mozilla ]]; then cp -R ~/.mozilla ~/.mozilla.backup; fi && sudo tar -jxvf firefox-3*.tar.bz2 -C /opt && rm firefox-3*.tar.bz2 && sudo mv /opt/firefox/plugins /opt/firefox/plugins.backup && sudo ln -s /usr/lib/xulrunner-addons/plugins /opt/firefox/plugins && sudo dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox && sudo ln -s /opt/firefox/firefox /usr/bin/firefox
You may also like to read:
- Firefox 3.7 Pre-Alpha For Windows, Mac And Linux Now Available
- Fix Google Chrome libnss3-1d Dependency Issue [Ubuntu]