I have downloaded a Firefox 5 tar.gz package under linux. How can I install it properly?

3

How can I install the Firefox 5 tar.gz properly under an Ubuntu and Fedora Linux environment?

Which folders should I put in?

  • /usr/local or
  • /opt/

Also, for those plugin .so files, where should I put them in?

  • /usr/lib/firefox/plugins or
  • ~/.mozilla/plugins

Actually I originally had Firefox 3.6 installed from the Ubuntu packages. I just want a proper way to install Firefox 5, overriding Firefox 3.6.

Update:

There is an answer on Ubuntu. How can i install well in Fedora?? Anyone can post the solution of Fedora as well?

Kit Ho

Posted 2011-07-03T18:49:11.510

Reputation: 3 467

Answers

8

It sounds you're using Ubuntu 10.04 Lucid since the latest version (11.04 Natty) is supplied with Firefox 5. Otherwise, remove your older Firefox packages and install Firefox 5 from the official repository.

Instructions for Ubuntu 10.04 Lucid and Ubuntu 10.10 Maverick (the proper way)

Instead of installing the tarball, you're recommended to install the mozillateam/firefox-stable PPA and use firefox from that package (see also What are PPAs and how to use them?, Lucid-specific information is available here).

This PPA is maintained by the same guy responsible for the firefox package in the main repository. PPA description:

Firefox Stable releases.

Aimed at Lucid and Maverick users who want to use a modern browser which starts faster than you can brew your morning coffee

Shell commands for adding the PPA, refreshing the repository information and installing Firefox 5:

sudo add-apt-repository ppa:mozillateam/firefox-stable
sudo apt-get update
sudo apt-get install firefox

Installing from tarball

If you still want to install the 32-bit tarball (there is not 64-bit version available from Mozilla), install it into your home directory. Instructions can be found on a Askubuntu question on installing multiple Firefox versions.

If you've a multi-user system for which you do not want to install Firefox each time, put the folders in /opt since it's a stand-alone package which do not follow the directory layout that is suitable for /usr/local. Plugins should be put in or ~/.mozilla/plugins (for per-user installations) or /opt/firefox/plugins (replace /opt accordingly)

Lekensteyn

Posted 2011-07-03T18:49:11.510

Reputation: 5 236

@Levensteyn: what's the different putting the plugins in /usr/lib/firefox/plugins and /opt/firefox/plugins ? – Kit Ho – 2011-07-04T00:51:49.977

@Kit Ho: /usr/lib/firefox/plugins should be used by the package manager. /opt is for local packages which can be used across upgrades. – Lekensteyn – 2011-07-04T08:41:32.523

FYI: you can track the current beta (Firefox 6) by replacing "firefox-stable" with "firefox-next" in the PPA name above (same developers) – Greg – 2011-08-05T07:02:04.780

2

harrymc

Posted 2011-07-03T18:49:11.510

Reputation: 306 093

Do you know if Fedora 11 support this? Cause i am using Fedora 11 – Kit Ho – 2011-08-05T06:05:55.717

The described procedure is the same for all versions, with only small syntactical differences. Regarding the repository, the Remi repository also contains remi-release-11.rpm.

– harrymc – 2011-08-05T06:26:06.083

1

Is there any particular reason why you have not opted to install Firefox using Ubuntu Software Center, APT or Synaptic? The developers of Ubuntu have a team dedicated to providing installation packages for all up to date software.

To install Firefox, it's probably best to use one of those three methods, Synaptic being the most common for Ubuntu users.

More information here: https://help.ubuntu.com/community/SynapticHowto

Ruairi Fullam

Posted 2011-07-03T18:49:11.510

Reputation: 2 284

1

If you really want to install it via tar.gz file, then unpack it to /opt/ directory and create symlink:

cd /opt
sudo tar xvfz /home/me/Downloads/firefox-{wahtever}.tar.gz
sudo chown -R root:root firefox-{wahtever}
sudo ln -s /opt/firefox-{whatever}/firefox /usr/local/bin/firefox

so you can execute if without providing full path. You can also right-click on desktop and create launcher and drag it to some panel.

Note, that you will not get updates automatically if you install firefox from .tar.gz. It's better to find some PPA repository if you are not happy with version from the official repository.

Michał Šrajer

Posted 2011-07-03T18:49:11.510

Reputation: 2 495

where can i find the ppa repository for fedora 11? – Kit Ho – 2011-08-07T14:44:56.567

PPA is only in ubuntu. for fedora, you need to find alternative repository like EPEL or directly RPM on sites like rpmfind – Michał Šrajer – 2011-08-07T18:34:57.570

+1 for /opt & symlinks - this is totally how I roll myself. – James T Snell – 2011-08-10T16:25:28.290