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

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 &

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!

{ 38 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

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>

Tagged as: , , , , , , , , ,

Previous post: CentOS / Red Hat Linux Find Out Latest Available Updated Package or Kernel Version

Next post: Linux Check Health of 3ware RAID Array