Install Firefox on AlmaLinux 9 and RHEL 9

This tutorial intends to teach you to Install the Latest Firefox Web Browser in Different Ways on AlmaLinux 9 and RHEL 9. As you know, Firefox is one of the most popular web browsers. In most Linux distros, the latest version of Firefox is available in the default package manager. Here we will show you some different ways to install Firefox in the newest version.

Different Ways To Install Latest Firefox Web Browser on AlmaLinux 9 and RHEL 9

In this article, you will learn to install Firefox in the following ways:

  • With Default Package Manager
  • Use Flatpak
  • Use Snap
  • And From Source.

To complete this guide, you must have access to your server as a non-root user with sudo privileges. For this purpose, you can visit this guide on Initial Server Setup with AlmaLinux 9.

Now follow the steps below to choose your desired way and install Firefox on RHEL 9 and AlmaLinux 9.

Step 1 – Install Firefox with DNF on AlmaLinux 9 / RHEL 9

The first way is to use the default DNF package manager on AlmaLinux 9 and RHEL 9. First, run the system update with the command below:

sudo dnf update -y

Then, use the following command to install Firefox with the DNF:

sudo dnf install firefox -y

Uninstall Firefox with Default Package Manager

If you want to remove the Firefox packages, you can easily use the following command:

sudo dnf remove firefox

Step 2 – Firefox Web Browser Installation with Flatpak

Another way that you can use to install the latest Firefox is Flatpak. It is a package management system that you can easily install and manage software with it.

First, you must have Flatpak installed on your server and enable the Fltahub. To do this, you can check this guide on Quick Setup For Flatpak on AlmaLinux 9 and RHEL 9.

When you are done, install Firefox by using the following command:

sudo flatpak install flathub org.mozilla.firefox
1. [✓] org.freedesktop.Platform.GL.default 22.08       i  flathub 142.8 MB / 143.1 MB
 2. [✓] org.freedesktop.Platform.GL.default 22.08-extra i  flathub  16.3 MB / 143.1 MB
 3. [✓] org.freedesktop.Platform.Locale     22.08       i  flathub  17.8 kB / 333.4 MB
 4. [✓] org.freedesktop.Platform.openh264   2.2.0       i  flathub 887.2 kB / 944.3 kB
 5. [✓] org.freedesktop.Platform            22.08       i  flathub 166.7 MB / 211.7 MB
 6. [✓] org.mozilla.firefox.Locale          stable      i  flathub 943.1 kB / 48.7 MB
 7. [✓] org.mozilla.firefox                 stable      i  flathub  87.2 MB / 88.9 MB

Installing 7/7… ████████████████████ 100%  21.8 MB/s  00:00

To run the Mozilla with Flatpak, you can use the command below:

sudo flatpak run org.mozilla.firefox

Uninstall Firefox with Flatpak

If you plan to remove Firefox and you use Flatpak to install it, you can easily remove it by using the command below:

sudo flatpak uninstall flathub org.mozilla.firefox

Step 3 – Firefox Web Browser Installation with Snap

Also, you can use Snap packages to install your desired software. The snap packages are available under the Epel repo in AlmaLinux 9 and RHEL 9. To install snap, run the following commands:

# sudo dnf install epel-release -y
# sudo dnf install snapd -y
# sudo systemctl enable --now snapd.socket
# sudo ln -s /var/lib/snapd/snap /snap
# reboot

Then, use the following snap command to install the latest Firefox:

sudo snap install firefox
firefox 117.0.1-2 from Mozilla✓ installed

Uninstall Firefox with Snap

Now if you want to remove the Firefox snap package, you can use the following command:

sudo snap remove firefox

Step 4 – Install Firefox From Source on AlmaLinux 9 / RHEL 9

To install Firefox from the source, you must visit the official downloads page and use the following wget command to download the Linux package:

sudo wget

Then, extract your downloaded file with the command below:

sudo tar xjf firefox-*.tar.bz2

Next, move your extracted file to the /opt directory:

sudo mv firefox /opt

Now create a symbolic link and download a copy of the desktop file with the following commands:

# sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox
# sudo wget -P /usr/local/share/applications

Uninstall Firefox from the Source

If you have installed Firefox from the source binary package, simply remove the folder Firefox in your home directory to uninstall Firefox. To do this, run the following commands:

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


At this point, you have learned to Install Mozilla Firefox on AlmaLinux 9 and RHEL 9 in 4 different ways including default package manager, Flatpak, Snap, and from source. You can choose your desired way and easily install the Firefox web browser on your server.

If you need any help or have an idea, please comment for us.

Newsletter Updates

Enter your email address below and subscribe to our newsletter

Stay informed and not overwhelmed, subscribe now!