Learn the different ways to install the FireFox browser on Ubuntu 22.04 LTS Jammy JellyFish using the command terminal and graphical user interface.
Well, Firefox doesn’t need an introduction, it is already a default system browser in most Linux systems including Ubuntu 22.04. Hence there is no need to install it at all, however, if you have uninstalled it or using a minimal Ubuntu system without any browser then this guide is for you.
Firefox uses the software module called Gecko (Gecko Rendering Engine). Gecko was written in the programming language C++ and is free software. The main focus of the developers at Gecko is on the support of open Internet standards such as e.g XHTML, HTML, and CSS. It is open source
Steps to install Mozilla FireFox on Ubuntu 22.04 LTS
Here we are showing 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 the APT package manager
1. Use APT update
Let’s first update our system because this will not only install the available security updates but also refresh the repository cache.
sudo apt update
2. Install FireFox on Ubuntu 22.04
The standard repository of Ubuntu offers stable packages of FireFox to install it using the APT package manager. Hence, we don’t have to look anywhere else. Just run the given command:
sudo apt install firefox
#2nd Method Using PPA repository:
3. Add Mozilla PPA repository
The above given first method is absolutely fine and good to go, however, those who want the latest version of Firefox or even the beta one to test the latest feature of this browser can go for the PPA method. Here we are adding an official PPA repository maintained by the Mozilla developers to provide the latest package of their browser.
Here is the command to add the repo:
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
Run the system update:
sudo apt-get update
4. Install the latest Firefox version 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 get updated to the newer one by running the installation 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 comes by default enabled 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 instead here we will download the FireFox package manually from the browser’s official website.
To makes things a little 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 and move it to some safe location such as /opt.
sudo tar xjf ~/Firefox.tar.bz2 -C /opt/
Optional – If you already have FireFox installed on your system then move 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 symbolic link for your downloaded firefox version.
sudo ln -s /opt/firefox/firefox /usr/bin/
7. How to update the FireFox browser
Here we have used different methods to install and set up the 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 PPA method
sudo apt update && sudo upgrade
For Snap method
sudo snap refresh firefox
For using 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, due to any reason if you want to remove the Mozilla Firefox then go for the method you have 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 Articles:
• 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
#4th method using Debian binary
6. Use the Firefox executable
Instead of :
sudo ln -s /opt/firefox/firefox /usr/lib/firefox/firefox
prefer :
sudo ln -s /opt/firefox/firefox /usr/bin/
What you already copied into /opt/ is actually the firefox lib’ so you only need a « shortcut » to the firefox binary, therefore inside /usr/bin/ targeting the firefox binary inside /opt/firefox/