4 Ways to Install Firefox Browser on Ubuntu 22.04 LTS Jammy

Check out the different ways to install FireFox browser on Ubuntu 22.04 LTS Jammy JellyFish using command terminal and GUI.
Well, Firefox needs no introduction, it’s already a default system browser in most Linux systems, including Ubuntu 22.04. So there is no need to install it at all, however, if you have uninstalled it or are using a minimal Ubuntu system without a browser, this guide is for you.
Firefox uses the software module called Gecko (Gecko Rendering Engine). Gecko was written in the C++ programming language and is free software. The developers of Gecko mainly focus on supporting open Internet standards such as for example XHTML, HTML and CSS. It’s open source
Steps to Install Mozilla FireFox on Ubuntu 22.04 LTS
Here we show different ways to install Firefox on Ubuntu 22.04 LTS, however, you can use them for other Linux systems. Such as Linux Mint, Debian, Elementary OS, MX Linux, POP_OS, and more…
#1st method using APT package manager
1. Use APT Update
Let’s start by updating our system, as this will not only install available security updates, but also refresh the repository cache.
sudo apt update
2. Install FireFox on Ubuntu 22.04
Ubuntu’s standard repository offers stable packages of FireFox to install using the APT package manager. Therefore, we need not look elsewhere. Just run the given command:
sudo apt install firefox
#2nd method using the PPA repository:
3. Add Mozilla PPA Repository
The first method given above is completely correct and good to use, however, those who want the latest version of Firefox or even the beta version to test the latest feature of this browser can go for the PPA method. Here we add a official PPA repository maintained by Mozilla developers to provide the latest package for their browser.
Here is the command to add the repository:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
Run the system update:
sudo apt-get update
4. Install the latest version of Firefox on Ubuntu 22.04
After adding the PPA repository to our system, it is ready to get the latest version of Firefox, even your existing browser version will be updated to the latest one by running the install command.
sudo apt install firefox
# 3rd method using SNAP
5. Get Mozilla Browser Using SNAP
Well, this method is for those who don’t want to use the system’s APT package manager. In all the latest versions of Ubuntu, Snap is enabled by default to install various applications, including the FireFox browser.
sudo snap install firefox
#4th method using Debian binary
6. Use the Firefox executable
Well, in this method we are not using any kind of package manager, here we will download the FireFox package manually from the browser. official site.
To complicate things a bit easy, we can get the Firefox executable using the wget
tool
wget -O ~/Firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64"
The file we get will be in Tar archive format, let’s extract it and move it to a safe location such as /opt.
sudo tar xjf ~/Firefox.tar.bz2 -C /opt/
Optional – If you have already installed FireFox on your system, move it and use it as a backup, in case you want to restore the default system version of the browser
sudo mv /usr/lib/firefox/firefox /usr/lib/firefox/firefox_backup
Create a new symbol link for your downloaded Firefox version.
sudo ln -s /opt/firefox/firefox /usr/lib/firefox/firefox
7. How to Update FireFox Browser
Here we have used different methods to install and configure Mozilla Firefox browser on Ubuntu 22.04 LTS, hence the methods to update it will also be different, go for the one accordingly.
For the APT method:
sudo apt update && sudo upgrade
For the PPA method
sudo apt update && sudo upgrade
For the Snap method
sudo snap refresh firefox
To use the direct Firefox executable
wget -O ~/Firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64"
sudo tar xjf ~/Firefox.tar.bz2 -C /opt/
8. Uninstall or remove Firefox from Ubuntu 22.04
Finally, for some reason, if you want to remove Mozilla Firefox, go with the method you used.
For APT
sudo apt remove firefox --purge
PPA repo method
sudo apt remove firefox --purge
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
For SNAP
sudo snap remove firefox
Manual installation
sudo rm -fr /opt/firefox
sudo mv /usr/lib/firefox/firefox_backup /usr/lib/firefox/firefox
Other Items:
• Install Dashlane Password Manager on Ubuntu 22.04 LTS
• How to open Firefox with URL in Linux via command line
• Steps to Install Avidemux on Ubuntu 22.04 LTS Linux