From Firefox 122 onwards, Mozilla provides a DEB package for Linux users using Ubuntu distributions, Debian GNU/Linux, Linux Mint, etc. Here's a quick guide on how to install Firefox as a DEB package.
Firefox is the most popular program tours open source and used by almost all Linux distributions. However, it comes pre-installed from the distribution's software repositories, and users don't always have the latest versions, nor the benefits of the official Mozilla-built DEB package.
The Firefox DEB package promises better performance thanks to advanced compiler-based optimizations and hardened Mozilla binaries with all security features enabled. With the DEB file, you will have access to the latest stable updates as quickly as possible and you will no longer need to re-movement of Firefox after upgrading it.
To install the Firefox DEB on Ubuntu, Debian GNU/Linux, Linux Mint, or another distribution, you have two alternatives: download the DEB package from or install an APT repository from Mozilla. Below we will look at the second scenario last as you will always get the latest version of Firefox without any problem.
To install the Mozilla APT repository, first create a directory to store the APT repository keys by running the following command in the application Port.
sudo install -d -m 0755 /etc/apt/keyrings
Then you need to enter it key of the Mozilla APT repository, with the following commands.
wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null
Next, you should add the Mozilla APT repository to your list of repositories with the commands below.
echo “deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main” | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null
Next, you need to configure APT to prioritize packages from the Mozilla repository with the commands below.
echo '
Packaging: *
Pin: origin packages.mozilla.org
Pin Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla
Finally, it's time to refresh the package list to install the Firefox DEB package with the commands below.
sudo apt-get update && sudo apt-get install firefox
That's it! You now have the official Firefox DEB package from Mozilla in your distribution. Note that all of the above will only work on Debian-based distributions (Ubuntu, Linux Lite, Bodhi, etc.).