How To Install firefox-3.0.tar.bz2 in Linux

by Vivek Gite · 46 comments

Q. How To Install Firefox 3.0 tar.bz2 (firefox-3.0.tar.bz2 file) in Linux?

A. You won't lose any of your bookmarks or browsing history created by Firefox 2.0, but some of your extensions and other add-ons might not work until updates for them are made available.

Backup Existing Firefox 2.0 Settings

Just backup existing Firefox 2.0 settings:
$ mkdir ff.backup/
$ cp -avr .mozilla/ ff.backup/

Installing Firefox 3 on Linux

Just use the following instructions to download and install Firefox.

Download Firefox 3.0 for Linux

Visit official website to grab latest version. You can also use wget command to download firefox.
$ cd /tmp
$ wget 'http://download.mozilla.org/?product=firefox-3.0&os=linux&lang=en-US'

Linux Install Firefox for all users

First close all running old Firefox 2.x sessions. Login as the root and type the following command to move old firefox 2 and install Firefox 3 under Linux:
# cd /opt
# mv firefox firefox.old
# cp /tmp/firefox-3.0.tar.bz2 .
# tar -jxvf firefox-3.0.tar.bz2

To start firefox, enter:
$ /opt/firefox/firefox &

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 46 comments… read them below or add one }

1 Weverton 06.17.08 at 6:07 pm

Good!

2 Anjanesh 06.17.08 at 8:37 pm

I have Ubuntu 8.04 which came with FireFox 3.0 beta 5.

How do I get to install the final release by replacing the beta content ?

My /opt folder is empty !

3 vivek 06.17.08 at 11:01 pm

Simply install it and always start ff from a shell prompt /opt, till Ubuntu releases updated package.

4 Anjanesh 06.18.08 at 5:27 am

Its odd that we have to wait for a update from Ubuntu without us manually updating it directly.

Anyway, turns out, Ubuntu has already released an update to FF3 final.

5 JohnnyLonie 06.28.08 at 1:07 am

Hey,

Given the “tar.bz2″ thing in the filename for “firefox-3.0.tar.bz2″, I thought I would fine Firefox’s source code compressed, rather than already-compiled-and-ready-for-execution files.

That was pretty confusing, since all the “innocent and newie” souls like me would go and do a search on Google like “installing tar.bz2 files”, and what you get are tons of Linux sites speaking of “source-code compressed stuff” which requires kind of complex commands for installation (decompressing it, compiling it, installing and so on).

What’s going on exactly? I’ll be just grateful if somebody can throw some light on this.

Thanx a lot in advance!

6 vivek 06.28.08 at 7:40 am

JohnnyLonie,

Go here to grab source code. Building package is not complex. All you need is build tools and a little experience.

7 JohnnyLonie 06.28.08 at 4:56 pm

Hey,

A giant thank you for your quick reply. But I’m not really interested on the source code of Firefox at the moment.

I just want to make it clear how come they’re using the “.tar.bz2″ thing for distributing already compiled binary files, when they actually -according to most of the Linux sites- in “tar.bz2″ file you should always include the source code of your program only, and not binaries.

All you gotta do is a search on google with the keywords “installing tar.bz2 files”, and -like I said- you’ll get tons of Linux sites speaking of “./configure, make install”, and other complex commands.

Now the thing is you download the firefox-3.0.tar.bz2 file, and you’ll see there are no source in it. So the question is just what’s going on?

Once again, thanx a lot in advance!

8 Nilesh 06.29.08 at 11:12 am

RPMs for RPM based system do exist! :P

9 adhoy 06.30.08 at 1:15 pm

I have followed ur advice but i got confuse when i tried to use firefox is still old version 2.0.0.8
I use fc8.
any advices?

10 Nilesh 06.30.08 at 5:16 pm

@adhoy: you have to launch firefox on the command line giving the full path.

if you extracted the tarball in /opt/firefox

then /opt/firefox/firefox is the path to application

11 srg 06.30.08 at 11:52 pm

-rwxr-xr-x 1 root root 3949 2008-05-29 16:21 /opt/firefox/firefox
-rwxr-xr-x 1 root root 7476 2008-05-29 16:21 /opt/firefox/firefox-bin
root@srg-desktop:/# /opt/firefox/firefox &
[1] 8348
root@srg-desktop:/# /opt/firefox/run-mozilla.sh: 442: /opt/firefox/firefox-bin: not found

[1]+ Exit 127 /opt/firefox/firefox
root@srg-desktop:/#

12 vivek 07.01.08 at 8:09 am

srg,

Run command as a normal user and not as root.

13 Mongo 08.02.08 at 10:10 pm

You guys, some of you don’t know how to talk to people who are really ignorant; do you? Anyway, the confusion is justifiable considering that the standard, at least in the Windows and Mac world – the paid worlds, that is – is that when you double-click an installer, that thing takes care of all the decompression of the archive, the locating of the old install, the upgrade and/or replacement, and the installation of needed binaries to make it all work. Now, what you guys appear to be doing is talking about how to decompress archives or how to run the executable in an archive, but what about the old installation? This download from mozilla.com appears to be a compressed complete installation that doesn’t appear to interact with the old installation or replace it. This is way confusing. Somebody said that RPMs exist for RPM based systems. What the heck are they? I go to mozilla.com and I don’t see any darn RPM of firefox 3. I don’t see a yum version. I don’t see anything but this freekin bz crap that ends up giving me a big folder of a new installation. Arrrrrrrgh.

14 S. Nilesh 08.03.08 at 9:02 am

Mongo, FYI, the above method is applicable for Linux flavours which don’t have an installer. In other cases the popular Linux flavours like Ubuntu, Fedora, SUSE, Gentoo have a package manager bundled with them which allows you to do add, remove packages and also with AUTOMATIC DOWNLOAD i.e. you have to just configure the source repository and give a click via the GUI (or command on CUI) and your app is installed WITH DEPENDENCIES. So, unlike the idiot windows you don’t even have to download the installer!!

15 S. Nilesh 08.03.08 at 9:05 am

Mongo, and further the RPMs for Fedora is available in its repositories. Give a click in the GUI or give the following command as root -

yum install firefox

OR

yum update firefox (if firefox 2 is installed)

16 Adam 08.08.08 at 1:02 am

hey for some reason, it goes through the motions and says it downloaded and installed it, but when i start up firefox, it still says its under version 2. any suggestions?? i am running suse 10.3.

17 Javier 08.16.08 at 11:02 pm

I have Firefox 2 installed on FC8 and I have tried:

yum install firefox

What I get though is the following message:

Could not find update match for firefox
No Packages marked for Update

18 Matías 08.19.08 at 2:58 am

[matias@localhost ~]$ su
Password:
[root@localhost matias]# cd /opt
[root@localhost opt]# mv firefox firefox.old
mv: cannot stat `firefox’: No such file or directory
[root@localhost opt]# cp /tmp/firefox-3.0.1.tar.bz2
cp: missing destination file operand after `/tmp/firefox-3.0.1.tar.bz2′
Try `cp –help’ for more information.
[root@localhost opt]# tar -jxvf firefox-3.0.1.tar.bz2
tar: firefox-3.0.1.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
[root@localhost opt]# /opt/firefox/firefox &
[1] 9516
[root@localhost opt]# bash: /opt/firefox/firefox: No such file or directory
[root@localhost opt]#
[1]+ Exit 127 /opt/firefox/firefox

Soy de chile, y tengo ese problema, no se si habre hecho algun paso mal, ocupo TinyMe 2008.
si podrian ayudarme porfavor

19 Tariq 09.26.08 at 12:14 am

What he said was that he is from chile, and he has that problem and he doesn’t know if he did something wrong.

I get the same thing he does, and I am running Ubuntu 7.04 feisty. Any advice would be wonderful. Thanks!

20 Vergil Slade 10.19.08 at 10:37 pm

Well it works for me but I miss the fist 3 comands because didnt work as I spected, I just uncompresed the archive and replace it instead the firefox.old, then I run al the ‘tar’ comand and the next one, ok good luck to all:

cd /opt
mv firefox firefox.old
cp /tmp/firefox-3.tar.bz2 .
tar -jxvf firefox-3.tar.bz2
$ /opt/firefox/firefox &

“SUNT”

21 Caleb 10.29.08 at 8:23 pm

Perfect! Been trying to figure this out forever.

22 loli 10.31.08 at 2:47 pm

my problem is this…

/opt/firefox/firefox-bin
/opt/firefox/firefox-bin: error while loading shared libraries: libjemalloc.so: cannot open shared object file: No such file or directory

23 vivek 10.31.08 at 3:27 pm

You need xulrunner and xulrunner-gnome support packages. Under Debian / Ubuntu Linux try following to install the same:
sudo apt-get install xulrunner-1.9 xulrunner-1.9-gnome-support
Under RHEL / RedHat / Fedora / Centos, use yum
yum install xulrunner
Once installed you should see file under /usr/lib64/xulrunner-1.9/libjemalloc.so (64bit) or /usr/lib/xulrunner-1.9/libjemalloc.so (32bit) or /usr/lib/xulrunner-1.9.0.3/libjemalloc.so (debian/ubuntu linux)

HTH

24 ebl 11.03.08 at 6:14 pm

hello,

can anyone just post the simple directions on how to install the firefox 3.03 to ubuntu 8.04
?

this is too complex for newbies like us! thanks!

25 Gonzalo 11.11.08 at 6:02 pm

Hello,
Can u tell me why when I type: /opt/firefox/firefox &
I get:root@gonzalo:/opt# Error: no display specified
Please tell me why…
Thank you!

26 V. Ravindran 12.25.08 at 7:13 am

I have machine with a red-hat linux and no firefox on it (only mozilla works)
today, I downloaded firefox-3.0.tar.bz2 and followed your instructions:
# tar -jxvf firefox-3.0.tar.bz2
$ /opt/firefox/firefox &
This gave the following error message:
/opt/firefox/firefox-bin: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

Please let me know what I should do
thanks in advance,
V. Ravindran

27 he weixiong 01.10.09 at 4:38 pm

[root@xslinux /]# cd opt
[root@xslinux opt]# ls -l
总用量 0
[root@xslinux opt]# /firefox/firefox &
[1] 8674
[root@xslinux opt]# /firefox/firefox-bin: error while loading shared libraries:
libpangocairo-1.0.so.0: cannot open shared object file: No such file or director
y

28 he weixiong 01.10.09 at 4:41 pm

I have a pc with redhad 9.0.when i install firefox3.0 as your instuction .show error as fofllow:
[root@xslinux /]# cd opt
[root@xslinux opt]# ls -l
总用量 0
[root@xslinux opt]# /firefox/firefox &
[1] 8674
[root@xslinux opt]# /firefox/firefox-bin: error while loading shared libraries:
libpangocairo-1.0.so.0: cannot open shared object file: No such file or director
y

29 Mikel 01.16.09 at 8:13 am

—Yum installing…
[root@localhost /]# yum install firefox
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Package firefox-3.0.2-1.fc9.x86_64 already installed and latest version
Nothing to do
—But I want to update my firefox as 3.0.5… and nothing happened

—As for the directions…
[root@localhost ~]# cd /opt
[root@localhost opt]# mv firefox firefox.old
mv: cannot stat `firefox’: No such file or directory

—Can somebody explain this instructions in a matter that it can easily be comprehend.. Anyway the “firefox” named file under the firefox folder in the firefox-3.0.5.tar.bz2 can be clicked and opens up a firefox browser.. Does this mean the firefox-3.0.5.tar.bz2 is new installer to be download..

30 Su 01.28.09 at 7:39 am

I am a newbie, and find this discussion very interesting as we can see different angles of the problem as well as the solution. It started with “How to install Firefox(current version) in Linux”. This also means that, if I have an older version of Firefox, I want to UPGRADE to the current version, and if I don’t have an older version of Firefox, then I simply want to INSTALL the current version. Also, Linux has different flavors (Ubuntu, Fedora, SuSE etc.), so is the directory structure same for all. Like can I follow the above method (cd /opt …) in all cases? Can anybody help (Upgrade, Install)??

31 Laura 01.29.09 at 4:34 pm

I’m running RHEL4 Update 4 and I’m running into the same problem as other users above:

# tar -jxvf firefox-3.0.tar.bz2
$ /opt/firefox/firefox &
This gave the following error message:
/opt/firefox/firefox-bin: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

I understand I need to have the following packages/libraries installed in order for this version of Firefox to work:

GTK+ 2.10 or higher
GLib 2.12 or higher
Pango 1.14 or higher
X.Org 1.0 or higher

Is there somewhere on the internet I can download these from? I don’t have yum installed.

Thank you!

32 darms 02.03.09 at 6:53 pm

Fedora8_64, just ran “yum update firefox” as root in a terminal window. Everything appeared to work except I find I’m still running FireFox 2! I’d love to use Linux, I don’t expect it to be ‘friendly’ like Windows, but trying to figure out the most basic things (like upgrading software) is like pulling teeth (and I’ve been looking off & on for about a year). Vivek, your directions above seem to be for running FireFox from a command line in a terminal window. How do I launch FireFox from the window (Fedora) I/F? Thanx in advance -

33 Ragavendra 02.24.09 at 5:55 pm

Extract the bz2 anywhere you are comfortable with.

Add a link to the Panel with the firefox icon……..Should work like gem…

NOTE: Avoid using old Firefox when this is done……

34 peter 02.27.09 at 5:58 am

I am newbie.
problem:
/opt/firefox/firefox-bin: error while loading shared libraries:libpangocairo-1.0.so.0: connot open shared object file:No such file or directory.
question:
what should i do ?

THKS

35 manoj 03.03.09 at 11:27 am

hi dears,
im a fresher in linux.my os(linux)doesnt support firfox now.i just want to reinstall .i downloaded firefox whixh is in tar format.anywas am not able to install and solve the problem.i hope u can help me.and i want to know any other browsers for linux

36 Kicxz 05.15.09 at 3:55 am

Here there when i try to run the instruction below i got this one
stm9999:/root# /opt/firefox/firefox &
[1] 5388
stm9999:/root# /opt/firefox/firefox-bin: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

Pls help.. Thanks

37 S. Nilesh 05.16.09 at 11:54 am

pango (http://www.pango.org) is absent in your system

38 Ghooma 06.01.09 at 7:16 am

Dear all
after extracting the archive follow:
1. rename the firefox folder located in /uer/lib/fir…
2. copy the folder u just extracted “….bz2″ to /usr/lib
3. the folders /usr/bin/firefox and /usr/lib/firefox are links to the previous folder u just renamed. delete this link. delete these 2 folders and create new links to the the new folder u have just copied by using the command:
#ln -s /usr/lib/fire…. /usr/bin/firefox
#ln -s /usr/lib/firefox
This procedure worked for me in Slackware.
Good luck

39 safdar azam 09.01.09 at 7:13 am

sir,
plz tell i am using Redhat 3 and i dont have firefox in my Pc that’s why i am able to access hotmail.gmail.and orkut plz how to install firefox in system. give me some comman command.

40 vikas 10.01.09 at 10:54 am

hi all this is vikas i am redhat linux 4.0 prof..i just want to ask how i can get original books & training video clips..plz tell me on mail…

41 Harold M. 10.27.09 at 2:34 am

I want to thank “Ghooma” for the example that opened my eyes to this and helped me understand what any of this means.

Everyone, I will try to break this down to a newbie level since I’m a complete newbie myself, so some of my explanations may not be official “linux” answers.

Please forgive any misteps but I’m trying to understand this process and explain it at the same time.

I’m using “Suse Linux Enterprise Server 11″.

I will give the steps listed by “Ghooma” and then try to explain what was done in each one so that you won’t feel as though you’re just pushing buttons with no idea of what you’re accomplishing.

Please make sure that you have closed all running firefox browsers before trying any of these steps.

1. Rename the “firefox” folder that is located in “/usr/lib/”.
1exp: This seems to be pretty close to the program files folder in windows and we’re renaming the folder that all of the shortcuts currently point to when you open firefox. I renamed mine to “firefox OLD”

2. Copy the folder you just extracted to “/usr/lib”
2exp: I just downloaded “firefox-3.5.3.tar.bz2″ and then ran the archiver tool “Ark” (Or file-roller) and extracted the compressed file into a new folder. I renamed the new folder “firefox” and it now contains all of my newly uncompressed files. Next I copied the newly named “firefox” folder from the downloaded and extracted location over to “/usr/lib”. This means that our firefox shortcuts will still be pointing to the same place but will be looking at our new “firefox” folder instead.

3. The folder “/usr/bin” contains a symbolic link to the original firefox file named “firefox”. ***NOTE***(This Is Where It Gets Tricky!!!)
Delete this symbolic link(“/usr/bin/firefox”) and also delete the folder “/usr/lib/firefox OLD” If you’re nervous here then just move them someplace where you can easily locate them again so the you can put the originals back if you want to.
3exp: “/usr/bin/firefox” is the symbolic link that all of the firefox shortcuts in the system point to when you click them, and they point directly to the “/usr/bin/firefox/firefox” (now “/usr/bin/firefox OLD/firefox”) shell script which launches firefox. Since we have renamed the old version and copied a newer version into its place, “Ghooma” suggests that we delete references to the old versions and get ready to make a new symbolic link pointing to the new version of firefox.

***NOTE*** My old links pointed to a file name “/usr/lib/firefox/firefox.sh” but in my new firefox folder the file was named “firefox” instead of “firefox.sh”!!! PAY ATTENTION!!!

Your old and new links will all stop working if you do not tell your symbolic link the correct filename in the new firefox installation!!!

I’m giving 2 extra versions of “Ghooma’s” next line of code because they both work depending on which scenario you have so please pay attention.

4. “Ghooma’s Original Code” ln -s /usr/lib/firefox /usr/bin/firefox (Will Probably Not Work!!!) (Sorry Ghooma)
4a. “My code” ln -s /usr/lib/firefox/firefox /usr/bin/firefox
4b. “My code variation” ln -s /usr/lib/firefox/firefox.sh /usr/bin/firefox
***NOTE*** YOU ONLY NEED TO RUN 1 LINE OF CODE BUT MAKE SURE THAT IT IS CORRECT FOR YOUR SYSTEM!!!!

4exp: This statement needs to be run from a command prompt. I ran as su.
This statement makes a symbolic link in the “/usr/bin/” folder and the link is named “firefox” (“/usr/bin/firefox”)
This symbolic link points to the file “firefox” OR “firefox.sh” located in the new folder that we copied earlier (“/usr/lib/firefox”)
The reason for multiple examples is because the file that launches firefox is a shell script file and may or may not have the “.sh” suffix but I’m almost certain that it will be nested deeper than the first 4. example.

***NOTE*** YOU NEED TO LOOK INTO THE FOLDER THAT WAS CREATED WHEN YOU EXTRACTED YOUR DOWNLOAD AND MAKE SURE THAT YOU ARE USING THE PRECISE FILENAME!!! (This is the same folder that we copied to “/usr/lib/firefox”)

I clicked my firefox shortcuts immediately after performing this trick and they all open with the new version of firefox.

Once again thanks to Ghooma for shedding light on this and I’m hoping that by being a little verbose that I may help someone else start appreciating linux.

Harold M.

42 Satish Kumar 11.27.09 at 4:36 am

I have machine with a red-hat linux and no firefox on it (only Konqueror works)
today, I downloaded firefox-3.5.5.tar.tar and followed your instructions:
# tar -jxvf firefox-3.5.5.tar.tar
$ /opt/firefox/firefox &
This gave the following error message:
/opt/firefox/firefox-bin: error while loading shared libraries: libpangocairo-1.0.so.0: cannot open shared object file: No such file or directory

Please let me know what I should do
thanks in advan
Satish Kumar

43 Eanur 01.06.10 at 7:04 pm

Dear all.
How can I install firefox3.5.7 in linux

44 Sai Lakshmana 01.21.10 at 6:06 pm

Awesome Harold……Great description…it worked for me.

Just follow the steps outlined by Harold, when it comes to symbolic link, first delete the old link present in /usr/bin.

cd /usr/bin
rm firefox
cd /usr/lib/firefox
here create your new link
ln -s /usr/lib/firefox/firefox /usr/bin/firefox

Just click on your shortcut and u see the magic.

45 Donode 02.20.10 at 2:16 am

Hi. Can someone help out a Linux Freespire newbie with installing firefox-3.6.tar.bz2, which was downloaded to my Desktop? I’d really appreciate it! Thanx so much!

46 Priyesh S 03.10.10 at 4:30 pm

How to update firefox-1.x to firefox-3.x

1.download the lastest firefox version which is probably in the tar.gz format !!

2.extract it ; it will create new firefox folder

3.close all the firefox browser

4.now to make backup of ur old firefox i suggest u do this graphical

cut the folder ” /usr/lib/firefox-*” to any other folder say oldfirefox on desktop

* -> represents the version

cut the sh script file “/usr/bin/firefox” to oldfirefox folder

if the “firefox” sh-script not present their could be same script named “firefox.sh” cut that !! but both r not present in same folder

5.now copy the newly extract firefox folder to /usr/lib/

6.Goto terminal and type the code (which ever works)

“#ln -s /usr/lib/firefox/firefox /usr/bin/firefox”

OR

“#ln -s /usr/lib/firefox/firefox.sh /usr/bin/firefox”

(1st code worked for me)

7 thats it !! open the firefox shrotcut !!

8 special thx to “Ghooma” and “Harold M.”

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous FAQ:

Next FAQ:

nixCraft FAQ PDF Collection Now Available To All