How Do I Uninstall Firefox on Linux
Uninstalling Firefox on Linux might seem tricky if you’re new to the system, but it’s actually straightforward once you know the right steps. Whether you want to remove Firefox to free up space, switch to another browser, or troubleshoot issues, I’ll guide you through the process. You’ll see how to uninstall Firefox using both command-line tools and graphical interfaces.
In this article, I’ll explain the different ways to uninstall Firefox depending on your Linux distribution. You’ll also learn how to handle Firefox installed via different methods like package managers or Snap. By the end, you’ll feel confident managing Firefox on your Linux system without hassle.
Understanding Firefox Installation on Linux
Before uninstalling Firefox, it’s important to know how it was installed. Firefox can be installed on Linux in several ways:
- Package Manager: Most Linux distros include Firefox in their official repositories. Installing via
apt,dnf, orpacmanis common. - Snap Package: Some distros use Snap to install Firefox as a containerized app.
- Flatpak: Another containerized method, Flatpak, can also be used.
- Manual Installation: You might have downloaded Firefox directly from Mozilla and installed it manually.
Knowing your installation method helps you choose the right uninstall command. For example, removing a Snap package is different from removing an apt package.
How to Uninstall Firefox Using Package Managers
Most Linux users install Firefox through their distro’s package manager. Here’s how to uninstall it on popular distributions.
Uninstalling Firefox on Ubuntu/Debian
Ubuntu and Debian use the apt package manager. To uninstall Firefox, open your terminal and run:
sudo apt remove firefox
This command removes the Firefox package but keeps configuration files. If you want to remove Firefox completely, including config files, use:
sudo apt purge firefox
After uninstalling, you can clean up unused dependencies with:
sudo apt autoremove
Uninstalling Firefox on Fedora
Fedora uses the dnf package manager. To remove Firefox, run:
sudo dnf remove firefox
This removes Firefox and its dependencies. Fedora doesn’t have a separate purge command like apt, but dnf remove is sufficient.
Uninstalling Firefox on Arch Linux
Arch Linux uses pacman. To uninstall Firefox, type:
sudo pacman -R firefox
If you want to remove Firefox and its dependencies that are no longer needed, use:
sudo pacman -Rs firefox
This ensures a cleaner removal.
How to Uninstall Firefox Installed via Snap
Snap packages are popular because they bundle all dependencies. If you installed Firefox as a Snap, you need to remove it differently.
To check if Firefox is installed as a Snap, run:
snap list
If you see Firefox listed, uninstall it with:
sudo snap remove firefox
Snap removal is quick and clean. Remember, Snap packages are isolated, so removing Firefox this way won’t affect system-wide settings.
How to Uninstall Firefox Installed via Flatpak
Flatpak is another containerized app system. To check if Firefox is installed via Flatpak, run:
flatpak list
If Firefox appears, uninstall it with:
flatpak uninstall org.mozilla.firefox
Flatpak keeps apps sandboxed, so this command removes Firefox and its data from the Flatpak environment.
Uninstalling Manually Installed Firefox
If you downloaded Firefox directly from Mozilla and extracted it to a folder, uninstalling is manual:
- Delete the Firefox folder where you extracted it.
- Remove any desktop shortcuts or menu entries you created.
- Optionally, delete Firefox profile data stored in your home directory under
~/.mozilla/firefox.
Manual uninstall requires you to clean up files yourself since no package manager tracks this installation.
Removing Firefox Profile Data
Uninstalling Firefox doesn’t always remove your personal data. Firefox stores profiles separately, which include bookmarks, passwords, and settings.
To delete Firefox profiles, open your terminal and run:
rm -rf ~/.mozilla/firefox
Be careful: this deletes all Firefox user data permanently. If you want to keep your data, back up this folder before removing it.
Using GUI Tools to Uninstall Firefox
If you prefer not to use the terminal, many Linux distros offer graphical software managers.
- Ubuntu Software Center: Search for Firefox, click on it, and choose “Remove.”
- GNOME Software: Similar to Ubuntu’s tool, find Firefox and uninstall.
- KDE Discover: On KDE desktops, open Discover, locate Firefox, and uninstall.
GUI tools are user-friendly but may not show Snap or Flatpak apps by default. You might need to enable viewing those packages.
Troubleshooting Common Issues When Uninstalling Firefox
Sometimes uninstalling Firefox can run into issues. Here are some tips:
- Firefox is running: Close Firefox before uninstalling. Use
killall firefoxif needed. - Permission denied: Use
sudoto run uninstall commands with admin rights. - Package not found: Confirm Firefox is installed via the package manager you’re using.
- Snap or Flatpak confusion: Check which system installed Firefox before uninstalling.
If you face errors, double-check your commands and installation method.
Reinstalling Firefox After Uninstall
If you uninstall Firefox but want to reinstall it later, you can do so easily.
- On Ubuntu/Debian:
sudo apt update
sudo apt install firefox
- On Fedora:
sudo dnf install firefox
- On Arch Linux:
sudo pacman -S firefox
- For Snap:
sudo snap install firefox
- For Flatpak:
flatpak install flathub org.mozilla.firefox
Reinstalling is quick and restores Firefox to your system.
Alternatives to Firefox on Linux
If you uninstall Firefox because you want a different browser, here are some popular Linux-friendly options:
- Google Chrome: Proprietary but widely used.
- Chromium: Open-source version of Chrome.
- Brave: Privacy-focused browser with built-in ad blocking.
- Opera: Feature-rich browser with VPN.
- Vivaldi: Highly customizable browser.
You can install these browsers via your package manager or Snap/Flatpak.
Summary Table: Uninstall Commands by Distribution and Method
| Distribution/Method | Uninstall Command | Notes |
| Ubuntu/Debian | sudo apt remove firefox | Use purge to remove configs |
| Fedora | sudo dnf remove firefox | Removes Firefox and dependencies |
| Arch Linux | sudo pacman -R firefox | Use -Rs to remove dependencies |
| Snap | sudo snap remove firefox | For Snap-installed Firefox |
| Flatpak | flatpak uninstall org.mozilla.firefox | For Flatpak-installed Firefox |
| Manual | Delete Firefox folder and configs | No package manager involved |
Conclusion
Uninstalling Firefox on Linux is easier than you might think once you know your installation method. Whether you use apt, dnf, pacman, Snap, Flatpak, or manual installation, there’s a clear way to remove Firefox cleanly. You can also remove your personal Firefox data if you want a fresh start.
If you prefer graphical tools, most Linux distros offer software centers to uninstall Firefox with a few clicks. Remember to close Firefox before uninstalling and check which package system you used. With these tips, managing Firefox on your Linux system becomes simple and stress-free.
FAQs
How do I check if Firefox is installed via Snap on Linux?
Run snap list in the terminal. If Firefox appears in the list, it’s installed as a Snap package.
Will uninstalling Firefox delete my bookmarks and passwords?
No, uninstalling Firefox usually keeps your profile data. You must delete the ~/.mozilla/firefox folder manually to remove personal data.
Can I reinstall Firefox after uninstalling it?
Yes, you can reinstall Firefox anytime using your distro’s package manager or Snap/Flatpak commands.
What if Firefox won’t uninstall using the package manager?
Make sure Firefox is not running and you have admin rights. Confirm the correct package manager and try again.
How do I uninstall Firefox on Linux without using the terminal?
Use your distro’s software center or app manager, search for Firefox, and select “Remove” or “Uninstall.”
