How to Install Firefox on RHEL and Debian Systems

In most modern Linux distributions, the latest version of Firefox has been already installed from the default distribution package manager and configured as the default browser.

In this article, we will explain other ways of installing the latest version of Firefox on RHEL-based distributions such as CentOS Stream, Fedora, Rocky, and AlmaLinux and Debian-based distributions such as Ubuntu and Linux Mint.

1. Install Firefox Using Package Manager

To install Firefox on your Linux distribution using the default package manager, run:

$ sudo apt install firefox           [On Debian, Ubuntu and Mint]
$ sudo yum install firefox           [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge -a www-client/firefox  [On Gentoo Linux]
$ sudo apk add firefox               [On Alpine Linux]
$ sudo pacman -S firefox             [On Arch Linux]
$ sudo zypper install firefox        [On OpenSUSE]

The above installation method is recommended because it assures that Firefox and along with the needed libraries are installed and configured on your distributions.

However, there might be a little delay between the release of the latest Firefox version and the moment when your distribution updates the new version of Firefox is available to install from the default repositories.

2. Install Firefox Using Flatpak

To install the new Firefox version, you need to first install and configure Flatpak on your Linux distribution. Once Flatpak is installed, navigate to Firefox Flathub’s page and hit the Install button to install it.

Install Firefox from Flathub
Install Firefox from Flathub

Alternatively, you can type the following command to install Firefox in a terminal:

# flatpak install flathub org.mozilla.firefox

3. Install Firefox Using Snap

To install Firefox from Snap, first, you need to install Snap on your distribution. Once Snap is installed, navigate to the Firefox Snapcraft’s Store page, and hit the Install button to follow the instructions.

Install Firefox from Snap
Install Firefox from Snap

Alternatively, you can run the following command to install Firefox in a terminal:

# sudo snap install firefox

4. Install Firefox from Source in Linux

To install Firefox from the source tarball, you must log in as a root user or have sudo privileges to execute sudo commands on the system.

Open any web browser and visit the official Firefox download page and click on the Download Now button.

Download Firefox
Download Firefox

Next, open a terminal and go to the Downloads directory, where you have downloaded Firefox, and install it as shown.

# cd ~/Downloads
# tar xjf firefox-*.tar.bz2
# mv firefox /opt
# ln -s /opt/firefox/firefox /usr/local/bin/firefox
# wget https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -P /usr/local/share/applications

To verify that Firefox has been successfully installed, open the Troubleshooting Information page. In the Application Basics window, the value of Application Binary should be /opt/firefox/firefox-bin.

Uninstall Firefox from Linux System

If you have installed Firefox from the default distro-based package manager, you should run:

$ sudo apt purge firefox            [On Debian, Ubuntu and Mint]
$ sudo yum remove firefox           [On RHEL/CentOS/Fedora and Rocky/AlmaLinux]
$ sudo emerge --deselect firefox    [On Gentoo Linux]
$ sudo apk del firefox              [On Alpine Linux]
$ sudo pacman -R firefox            [On Arch Linux]
$ sudo zypper remove firefox        [On OpenSUSE]

If you have installed Firefox using Flatpack or Snap, run:

# flatpak uninstall flathub org.mozilla.firefox
OR
# snap remove firefox

If you have installed Firefox from the source binary package, simply remove the folder firefox in your home directory to uninstall Firefox.

# rm -rf /opt/firefox/firefox
# rm -rf /usr/local/share/applications/firefox.desktop
# rm -rf /home/user/.mozilla/

The above commands will remove Firefox along with the user data such as bookmarks, passwords, and cookies.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

57 thoughts on “How to Install Firefox on RHEL and Debian Systems”

  1. the command
    sudo yum –enablerepo=remi list firefox

    displays version 26 as the latest.

    Firefox v29 isn’t listed in that list.

    Does anyone faced this issue.?

    Reply
    • First, you must have X server installed such as Gnome, KDE or XFCE or whatever you like. And then set the display variable as shown below.

      # export DISPLAY=:0
      

      Now, run the firefox command again from the terminal.

      Reply
  2. Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.13.2)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.13.2)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libsmime3.so(NSS_3.15)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libsmime3.so(NSS_3.15)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libnss3.so(NSS_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libnss3.so(NSS_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libz.so.1(ZLIB_1.2.0)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libsmime3.so(NSS_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libsmime3.so(NSS_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: nspr >= 4.10.2
    Installed: nspr-4.8.6-1.el6.i686 (@anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0)
    nspr = 4.8.6-1.el6
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libnss3.so(NSS_3.12.9)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libnss3.so(NSS_3.12.9)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libjpeg.so.62(LIBJPEG_6.2)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libnssutil3.so(NSSUTIL_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libnssutil3.so(NSSUTIL_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.15)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.15)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: nss >= 3.15.3
    Installed: nss-3.12.7-2.el6.i686 (@anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0)
    nss = 3.12.7-2.el6
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.14)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.14)
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    Reply
  3. i am not able to install IE 7 or add plugins to support IE7 on REDHAT Linux 5,Could you please let me know the proper plugin to support internect explorer 7 or 8.

    I am new to work in Linux,please suggest process as well….Thanks.

    Thanks,
    Srinivas.

    Reply
  4. hi iam using RHEL 6.0 and getting the fallowing error please let me know what to do ?

    yum –enablerepo=remi install firefox
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    [[email protected] Desktop]# yum –enablerepo=remi install firefox
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    [[email protected] Desktop]# yum –enablerepo=remi install firefox
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is not registered with RHN.
    RHN support will be disabled.
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package firefox.x86_64 0:26.0-2.el6.remi set to be updated
    –> Processing Dependency: xulrunner-last(x86-64) >= 26.0-2 for package: firefox-26.0-2.el6.remi.x86_64
    –> Processing Dependency: system-bookmarks for package: firefox-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libxul.so(xul26)(64bit) for package: firefox-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libmozalloc.so()(64bit) for package: firefox-26.0-2.el6.remi.x86_64
    –> Running transaction check
    —> Package astronomy-bookmarks.noarch 0:1-6.el6 set to be updated
    —> Package xulrunner-last.x86_64 0:26.0-2.el6.remi set to be updated
    –> Processing Dependency: nss >= 3.15.3 for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: nspr >= 4.10.2 for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libz.so.1(ZLIB_1.2.0)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libssl3.so(NSS_3.15)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libssl3.so(NSS_3.14)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libssl3.so(NSS_3.13.2)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libssl3.so(NSS_3.13)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libsmime3.so(NSS_3.15)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libsmime3.so(NSS_3.13)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libnssutil3.so(NSSUTIL_3.13)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libnss3.so(NSS_3.13)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libnss3.so(NSS_3.12.9)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: xulrunner-last-26.0-2.el6.remi.x86_64
    –> Finished Dependency Resolution
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libsmime3.so(NSS_3.15)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libsmime3.so(NSS_3.15)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libnss3.so(NSS_3.12.9)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libnss3.so(NSS_3.12.9)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libnssutil3.so(NSSUTIL_3.13)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libnssutil3.so(NSSUTIL_3.13)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libssl3.so(NSS_3.13)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libssl3.so(NSS_3.13)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libssl3.so(NSS_3.15)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libssl3.so(NSS_3.15)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: nss >= 3.15.3
    Installed: nss-3.12.7-2.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0)
    nss = 3.12.7-2.el6
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libsmime3.so(NSS_3.13)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libsmime3.so(NSS_3.13)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libssl3.so(NSS_3.14)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libssl3.so(NSS_3.14)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libnss3.so(NSS_3.13)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libnss3.so(NSS_3.13)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libjpeg.so.62(LIBJPEG_6.2)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: nspr >= 4.10.2
    Installed: nspr-4.8.6-1.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201009221801.x86_64/6.0)
    nspr = 4.8.6-1.el6
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libssl3.so(NSS_3.13.2)(64bit)
    Available: xulrunner-last-26.0-1.el6.remi.x86_64 (remi)
    libssl3.so(NSS_3.13.2)(64bit)
    Error: Package: xulrunner-last-26.0-2.el6.remi.x86_64 (remi)
    Requires: libz.so.1(ZLIB_1.2.0)(64bit)
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    Reply
  5. Following error

    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.13.2)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.13.2)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libsmime3.so(NSS_3.15)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libsmime3.so(NSS_3.15)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libnss3.so(NSS_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libnss3.so(NSS_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libz.so.1(ZLIB_1.2.0)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libsmime3.so(NSS_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libsmime3.so(NSS_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: nspr >= 4.10.2
    Installed: nspr-4.8.6-1.el6.i686 (@anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0)
    nspr = 4.8.6-1.el6
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libnss3.so(NSS_3.12.9)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libnss3.so(NSS_3.12.9)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libjpeg.so.62(LIBJPEG_6.2)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libnssutil3.so(NSSUTIL_3.13)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libnssutil3.so(NSSUTIL_3.13)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.15)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.15)
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: nss >= 3.15.3
    Installed: nss-3.12.7-2.el6.i686 (@anaconda-RedHatEnterpriseLinux-201009221732.i386/6.0)
    nss = 3.12.7-2.el6
    Error: Package: xulrunner-last-26.0-2.el6.remi.i686 (remi)
    Requires: libssl3.so(NSS_3.14)
    Available: xulrunner-last-26.0-1.el6.remi.i686 (remi)
    libssl3.so(NSS_3.14)
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

    Reply
  6. Ravi,

    After following your steps without error, my RHEL 6 system no shows FF 24 installed, but only version 22 will launch. Can you advise?

    Thank you!

    Reply

Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.