Friday, October 24, 2008

Updating firefox2 to firefox3 in linux

its a real hassle that mozilla does not provide an rpm file to install firefox.
i use mandriva 2008.0 which has firefox-2.0.0.6
I wanted to upgrade it to firefox3.0
i got the tar.bz2 file but if i wanted to run firefox3 then i had to go to the extracted folder and run from there. If I ran firefox from the desktop then the older version started up.....
what i had to do was to write commands for backing up my old firefox and then installing the new one....

here it is......

1. first backup the old firefox version :-

$ mkdir ff.backup/
$ cp -avr .mozilla/ ff.backup/

2. download firefox-3

$ cd /tmp
$ wget 'http://download.mozilla.org/?product=firefox-3.0&os=linux&lang=en-us'

3. switch to root user
$ su -

4. the important part...installing firefox-3
# cd /opt
# mv firefox firefox.old
# cp /tmp/firefox-3.0.tar.bz2 /opt
# tar -jxvf firefox-3.0.tar.bz2

5. exit from root user mode
# exit

6. finally start firefox
$ /opt/firefox/firefox &

The browser will then look for updates to the add-ons and will then start......
so folks.......enjoy using firefox-3.0 !!!!

No comments: