Installing Firefox 4.0 under Red Hat Enterprise Linux 6.x23 March 2011
If you're actually trying to install another version of Firefox, then click on the
Firefox tag, as there may be an entry on that other version.
Since a fair number of the hits to this 'blog are from searches as to how to install earlier versions of Firefox on earlier versions of RHEL, I'm going to infer that people are and will be surfing the WWWeb for instructions on how to install Firefox 4.0 under RHEL 6.x. Here are the steps that I recommend:
- Download the archive, firefox-4.0[.n].tar.bz2.
- The tarball contains a directory,
firefox, which should be dropped-in as a sub-directory of something. If you want to ponder where, then study the FHS. As for me, as root, I put it in
tar -xjvf firefox-4.0[.n].tar.bz2 -C /opt/
[.n]if it isn't in the name of the archive that you downloaded. Replace it with the actual number from the name of the archive if such a number was included.)
- You'll need a
.desktopfile for Firefox (though you may already have one). As root, edit/create
/usr/share/applications/firefox.desktop, ensuring that it reads
(If you didn't install in
[Desktop Entry] Categories=Application;Network;X-Red-Hat-Base; Type=Application Encoding=UTF-8 Name=Firefox Comment='WWW browser' Exec='/opt/firefox/firefox' Icon='/opt/firefox/icons/mozicon128.png' Terminal=false
/opt, or changed the name of the
firefoxdirectory, then you'll need to change the above accordingly.)
- Log out and back in or restart the system (to up-date the GUI).