Ubuntu

Uninstall Firefox in Ubuntu 22.04

Mozilla Firefox (or “Firefox”) is one of the most popular web browsers. It’s a free and open-source software which is developed by the Mozilla Foundation (and its subsidiary, the Mozilla Corporation). Because of the licensing flexibility and open-source nature, most Linux distros (including Ubuntu) come with Firefox as the default browser.

In this guide, we will learn how to uninstall Firefox in Ubuntu 22.04.

Prerequisites:

To perform the steps that are demonstrated in this guide, you need the following components:

Step 1: Checking the Existing Firefox Installation

Starting from Ubuntu 21.10, Firefox comes installed as a snap package instead of the traditional DEB package. The move is done according to an agreement between Mozilla and Canonical, the parent company of Ubuntu.

We can verify this by checking the list of installed DEB and snap packages:

$ apt list --installed | grep firefox

$ snap list | grep firefox

As you can see, Firefox is installed as a snap package.

Even the official DEB package for Firefox is a transitional package for Firefox snap.

$ apt info firefox

Step 2: Uninstalling Firefox

According to Snapcraft, snaps are universal Linux packages that are easy to install, secure, and are dependency-free. The dependencies are already included within the package so that it can function seamlessly on any Linux distro.

To remove the Firefox snap, we first need to learn the package name:

$ snap list | grep firefox

To remove the Firefox snap, run the following command:

$ sudo snap remove firefox

To verify, check the list of installed snaps once again:

$ snap list | grep firefox

Bonus: Install the Firefox ESR

Firefox comes in two types of releases:

  • Rapid Release: Major updates are released every 4 weeks. In the meantime, it also receives necessary minor updates (crash fixes, security fixes, and others) as needed.
  • ESR (Extended Support Release): Major updates are released every 42 weeks while it receives necessary minor updates in the meantime.

In short, the Rapid release is the classic Firefox release cycle whereas ESR focuses more on stability and consistency. Personally, Firefox ESR is recommended because of its stability rather than getting features every month or so.

The Firefox snap package supports both Rapid and ESR releases through different channels.

$ snap info firefox

Already have Firefox installed? Use the following command to switch to the ESR channel:

$ sudo snap refresh firefox --channel=esr/stable

If Firefox is already uninstalled, you can install the Firefox ESR snap using the following command:

$ sudo snap install firefox --channel=esr/stable

Conclusion

We demonstrated the ways of uninstalling Firefox from Ubuntu 22.04. We also showcased how to install or switch to the Firefox ESR release. The Firefox category contains various guides to master the browser.

Interested in learning more about snaps? Check out the official Snapcraft documentation. For general users, learn more about managing the snap packages on Ubuntu.

About the author

Sidratul Muntaha

Student of CSE. I love Linux and playing with tech and gadgets. I use both Ubuntu and Linux Mint.