Share your love
Install Firefox on AlmaLinux 9 and RHEL 9: Easy Setup

This tutorial intends to teach you to Install Firefox 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.
Now follow the steps below on the Orcacore website to Install Firefox on AlmaLinux 9 and RHEL 9.
Table of Contents
Different Ways To Install Firefox on AlmaLinux 9 and RHEL 9
In this article, you will learn to Install Firefox on AlmaLinux 9 and RHEL 9 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.
Method 1 – Install Firefox with DNF on AlmaLinux 9 / RHEL 9
The first way to Install Firefox on AlmaLinux 9 and RHEL 9 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
Method 2 – Firefox Web Browser Installation with Flatpak
Another way that you can use to Install Firefox on AlmaLinux 9 and RHEL 9 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

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
Method 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
Output
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
Method 4 – Install Firefox From Source on AlmaLinux 9 / RHEL 9
To Install Firefox on AlmaLinux 9 and RHEL 9 from the source, you must visit the official downloads page and use the following wget command to download the Linux package:
sudo wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/117.0.1/linux-x86_64/en-US/firefox-117.0.1.tar.bz2
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 https://raw.githubusercontent.com/mozilla/sumo-kb/main/install-firefox-linux/firefox.desktop -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/
Conclusion
At this point, you have learned to Install 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. Also, you may like to read the following articles: