• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TinyGrab

Your Trusted Source for Tech, Finance & Brand Advice

  • Personal Finance
  • Tech & Social
  • Brands
  • Terms of Use
  • Privacy Policy
  • Get In Touch
  • About Us
Home » How to Uninstall Firefox from Ubuntu?

How to Uninstall Firefox from Ubuntu?

June 5, 2026 by TinyGrab Team Leave a Comment

Table of Contents

Toggle
  • How to Uninstall Firefox from Ubuntu: A Definitive Guide
    • Understanding the Different Installation Methods
    • Common Uninstall Methods in Detail
      • Uninstalling Firefox via APT
      • Uninstalling Firefox via Snap
      • Manually Installed Firefox
    • Confirming the Uninstallation
    • Frequently Asked Questions (FAQs)
      • 1. Why should I uninstall Firefox?
      • 2. Does apt remove firefox remove everything?
      • 3. What's the difference between remove and purge in APT?
      • 4. How do I know if Firefox was installed via Snap?
      • 5. What happens if I don't run apt autoremove?
      • 6. Can I reinstall Firefox after uninstalling it?
      • 7. How do I remove Firefox profiles and bookmarks?
      • 8. What if I get an error message during uninstallation?
      • 9. Is it safe to use rm -rf to remove a manually installed Firefox?
      • 10. Will uninstalling Firefox affect other browsers?
      • 11. How do I prevent Firefox from being automatically reinstalled after an update?
      • 12. What if I have multiple versions of Firefox installed?

How to Uninstall Firefox from Ubuntu: A Definitive Guide

So, you’ve decided to part ways with Firefox on your Ubuntu system? Whether you’re switching browsers, troubleshooting issues, or simply freeing up disk space, the process is straightforward, but it’s important to do it right to avoid lingering files and potential conflicts. Here’s the definitive guide on how to completely uninstall Firefox from Ubuntu. We’ll cover multiple methods and address common concerns along the way.

The most common and reliable method is to use the apt package manager, directly from the terminal. Open your terminal, and execute the following command:

sudo apt remove firefox 

This command initiates the removal of the Firefox package. You’ll be prompted for your password to grant administrative privileges. After entering your password, the system will analyze the dependencies and confirm the removal. Type y and press Enter to proceed.

However, this command alone doesn’t remove the configuration files. To completely remove Firefox, including all its configuration files and user data, use the following command:

sudo apt purge firefox 

The purge option ensures that all configuration files associated with Firefox are also removed. Again, confirm the action when prompted.

Alternatively, if you installed Firefox using Snap, the package manager developed by Canonical (the creators of Ubuntu), you’ll need to use the Snap command to remove it.

sudo snap remove firefox 

This command will uninstall the Snap version of Firefox.

Following either of these uninstall methods, it’s always a good idea to run an autoremove command to clean up any dependencies that are no longer needed.

sudo apt autoremove 

This command removes automatically installed dependencies that were installed to satisfy dependencies for Firefox and are now no longer required. This helps to keep your system clean and free of unnecessary files.

Now, let’s dive deeper into specific scenarios and address frequently asked questions to ensure a smooth and thorough uninstallation.

Understanding the Different Installation Methods

It’s crucial to understand how Firefox was initially installed to uninstall it correctly. Firefox can be installed in Ubuntu using different methods:

  • APT (Advanced Package Tool): This is the traditional package management system in Ubuntu. You install Firefox from the official Ubuntu repositories.
  • Snap: A containerized software package format developed by Canonical. Snap packages are self-contained and include all dependencies.
  • Manual Installation: Downloading the Firefox tarball directly from Mozilla and extracting it to a directory. This is less common but possible.

Common Uninstall Methods in Detail

Let’s examine each uninstallation method in more detail:

Uninstalling Firefox via APT

This method is suitable if you installed Firefox using apt install firefox.

  1. Open the Terminal: Press Ctrl + Alt + T to open the terminal.
  2. Remove Firefox: Execute the command sudo apt remove firefox.
  3. Purge Configuration Files: Execute the command sudo apt purge firefox. This step is vital for a complete removal.
  4. Autoremove Dependencies: Execute sudo apt autoremove to remove orphaned dependencies.

Uninstalling Firefox via Snap

If Firefox was installed via Snap, this is the method for you. Snap installations are easily identified if you explicitly remember installing using snap install firefox.

  1. Open the Terminal: Press Ctrl + Alt + T to open the terminal.
  2. Remove Firefox: Execute the command sudo snap remove firefox.

Manually Installed Firefox

If you manually installed Firefox, the uninstallation process involves simply deleting the directory where you extracted the files.

  1. Locate the Installation Directory: Determine where you extracted the Firefox tarball. Common locations include /opt/firefox or your home directory.
  2. Delete the Directory: Use the rm -rf command to remove the directory. For example, if Firefox is located in /opt/firefox, use the command sudo rm -rf /opt/firefox. Be extremely careful when using rm -rf as it permanently deletes files and directories without confirmation.

Confirming the Uninstallation

After uninstalling Firefox, it’s a good practice to confirm that it has been successfully removed. You can do this by:

  • Checking the Applications Menu: Search for “Firefox” in the applications menu. It should no longer appear.
  • Using the Terminal: Type firefox in the terminal. If Firefox is not installed, you should receive a “command not found” error.
  • Checking Package Listings: Run apt list --installed
    grep firefox or snap list

Frequently Asked Questions (FAQs)

Here are 12 frequently asked questions related to uninstalling Firefox from Ubuntu:

1. Why should I uninstall Firefox?

You might uninstall Firefox for several reasons, including switching to another browser (like Chrome, Brave, or Edge), troubleshooting issues, or freeing up disk space. You might also need to remove a broken installation before reinstalling it.

2. Does apt remove firefox remove everything?

No, apt remove firefox removes the Firefox application itself but leaves the configuration files intact. To remove everything, you must use apt purge firefox.

3. What's the difference between remove and purge in APT?

The remove command uninstalls the package but retains configuration files. The purge command uninstalls the package and also removes its configuration files, providing a cleaner uninstallation.

4. How do I know if Firefox was installed via Snap?

Check your installed Snap packages by running snap list. If "firefox" is listed, it was installed via Snap. You can also try running which firefox. If it points to a path under /snap, it's a Snap installation.

5. What happens if I don't run apt autoremove?

Unnecessary dependencies might remain on your system, consuming disk space. Running apt autoremove cleans up these orphaned packages.

6. Can I reinstall Firefox after uninstalling it?

Yes, you can reinstall Firefox after uninstalling it. Use sudo apt install firefox or sudo snap install firefox depending on your preferred method.

7. How do I remove Firefox profiles and bookmarks?

If you want to completely wipe Firefox data, you can manually delete the Firefox profile directory. It's typically located in ~/.mozilla/firefox/. Exercise caution as this will permanently delete your bookmarks, history, and other settings.

8. What if I get an error message during uninstallation?

Error messages usually indicate dependency issues or insufficient permissions. Ensure you're using sudo for commands that require administrative privileges. If dependency problems persist, try running sudo apt update and sudo apt upgrade before attempting the uninstallation again.

9. Is it safe to use rm -rf to remove a manually installed Firefox?

Yes, but be extremely cautious. Double-check the directory path before executing the command. Accidentally deleting the wrong directory can lead to data loss. It is always a good practice to back up important data before performing system changes.

10. Will uninstalling Firefox affect other browsers?

No, uninstalling Firefox will not affect other browsers installed on your system. Each browser is independent of the others.

11. How do I prevent Firefox from being automatically reinstalled after an update?

This is unlikely to happen unless you have explicitly configured automatic package management tools. However, you can "hold" the Firefox package to prevent future updates. After uninstalling Firefox, run sudo apt-mark hold firefox. To unhold it later, use sudo apt-mark unhold firefox.

12. What if I have multiple versions of Firefox installed?

This is rare, but if you suspect multiple versions, use whereis firefox to locate all instances. Then, uninstall each version individually using the appropriate method (APT, Snap, or manual removal).

Filed Under: Tech & Social

Previous Post: « Can you win real money on Caesars Slots app?
Next Post: Is “Christmas with the Kranks” on Netflix? »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

NICE TO MEET YOU!

Welcome to TinyGrab! We are your trusted source of information, providing frequently asked questions (FAQs), guides, and helpful tips about technology, finance, and popular US brands. Learn more.

Copyright © 2026 · Tiny Grab