Categories: 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:

Sponsored
$ 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.

Ubuntu Server Admin

Recent Posts

Web Engineering: Hack Week 2024

At Canonical, the work of our teams is strongly embedded in the open source principles…

22 hours ago

Ubuntu Weekly Newsletter Issue 873

Welcome to the Ubuntu Weekly Newsletter, Issue 873 for the week of December 29, 2024…

3 days ago

How to resolve WiFi Issues on Ubuntu 24.04

Have WiFi troubles on your Ubuntu 24.04 system? Don’t worry, you’re not alone. WiFi problems…

3 days ago

Remembering and thanking Steve Langasek

The following is a post from Mark Shuttleworth on the Ubuntu Discourse instance. For more…

3 days ago

How to Change Your Prompt in Bash Shell in Ubuntu

I don’t like my prompt, i want to change it. it has my username and…

3 days ago

The Silent Guardian: Why Bundler Checksums Are a Game-Changer for Your Applications

Introduction: A Fragile Trust The Ruby ecosystem relies heavily on RubyGems.org as the central platform…

4 days ago