Skip to main content

Command Palette

Search for a command to run...

How to Install Mozilla on Linux

Published
6 min readView as Markdown

Installing Mozilla Firefox on Linux is easier than you might think. Whether you're new to Linux or switching from another operating system, getting Firefox up and running is straightforward. You have several options depending on your Linux distribution and preferences. I’ll guide you through the most common and reliable methods.

You’ll learn how to install Firefox using your system’s package manager, download it directly from Mozilla, and even use Snap or Flatpak. By the end, you’ll have Mozilla Firefox ready to browse the web securely and efficiently on your Linux machine.

Why Choose Mozilla Firefox on Linux?

Firefox is a popular web browser known for its speed, privacy features, and open-source nature. On Linux, it integrates well with your system and receives regular updates. Here’s why you might want to install Firefox on Linux:

  • Privacy-focused: Firefox blocks trackers by default.
  • Open-source: Transparent development and community-driven.
  • Customizable: Thousands of add-ons and themes.
  • Cross-platform: Sync bookmarks and passwords across devices.
  • Regular updates: Security patches and new features.

If you want a reliable browser that respects your privacy and works smoothly on Linux, Firefox is a great choice.

Installing Mozilla Firefox Using Package Managers

Most Linux distributions include Firefox in their official repositories. Using your package manager is the easiest and safest way to install it.

For Ubuntu, Debian, and Derivatives

Open your terminal and run:

sudo apt update
sudo apt install firefox

This installs the latest stable Firefox version available in your distro’s repository. If Firefox is already installed, this command updates it.

For Fedora

Use the DNF package manager:

sudo dnf install firefox

Fedora usually provides recent Firefox versions, so you get new features quickly.

For Arch Linux and Manjaro

Use Pacman:

sudo pacman -S firefox

Arch users benefit from the latest Firefox builds due to the rolling release model.

Benefits of Using Package Managers

  • Automatic updates with system upgrades.
  • Easy to uninstall or reinstall.
  • Ensures compatibility with your system libraries.

If you prefer a hassle-free method, package managers are the way to go.

Installing Mozilla Firefox Using Snap

Snap packages are universal Linux packages that work across distributions. Mozilla officially supports Firefox as a Snap package.

How to Install Snap and Firefox Snap

If Snap is not installed, set it up first:

sudo apt update
sudo apt install snapd
sudo systemctl enable --now snapd.socket

Then install Firefox Snap:

sudo snap install firefox

Advantages of Snap

  • Automatically updates Firefox in the background.
  • Sandboxed for security.
  • Works on any Linux distro with Snap support.

Things to Consider

  • Snap packages may start slower than native installs.
  • Some users prefer traditional package managers for system integration.

Installing Mozilla Firefox Using Flatpak

Flatpak is another universal package system popular on Linux. Firefox is available as a Flatpak from Flathub.

Steps to Install Flatpak and Firefox

First, install Flatpak if you don’t have it:

sudo apt install flatpak

Add the Flathub repository:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Install Firefox Flatpak:

flatpak install flathub org.mozilla.firefox

Run Firefox with:

flatpak run org.mozilla.firefox

Benefits of Flatpak

  • Runs in a sandbox for better security.
  • Works across many Linux distros.
  • Easy to update and manage.

Downloading and Installing Firefox Manually

If you want the absolute latest version or a specific build, you can download Firefox directly from Mozilla.

Steps to Download and Install

  1. Visit the official Firefox download page: https://www.mozilla.org/en-US/firefox/new/
  2. Download the Linux tarball (usually a .tar.bz2 file).
  3. Extract the archive:
tar xjf firefox-*.tar.bz2
  1. Move the extracted folder to /opt for system-wide use:
sudo mv firefox /opt/firefox
  1. Create a symbolic link to run Firefox easily:
sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox
  1. Run Firefox by typing firefox in the terminal.

Why Choose Manual Installation?

  • Access to the latest Firefox builds before they hit repos.
  • Control over installation location.
  • Useful for testing or development.

Keep in Mind

Manual installs don’t update automatically. You’ll need to repeat the process to upgrade.

Updating Mozilla Firefox on Linux

Keeping Firefox updated is crucial for security and performance.

If Installed via Package Manager

Run your system update commands:

  • Ubuntu/Debian:
sudo apt update && sudo apt upgrade
  • Fedora:
sudo dnf upgrade
  • Arch:
sudo pacman -Syu

If Installed via Snap or Flatpak

  • Snap updates automatically.
  • For Flatpak, update manually:
flatpak update

Manual Installation Updates

Download the new tarball and replace the old folder in /opt/firefox.

Troubleshooting Common Issues

Sometimes Firefox installation or running can hit snags. Here are quick fixes:

  • Firefox won’t start: Run firefox in terminal to see errors.
  • Missing dependencies: Use your package manager to install required libraries.
  • Profile issues: Rename or delete ~/.mozilla/firefox to reset.
  • Slow startup with Snap: Consider switching to package manager install.

Customizing Firefox on Linux

Once installed, you can personalize Firefox:

  • Install add-ons from the Mozilla Add-ons site.
  • Sync your Firefox account for bookmarks and passwords.
  • Change themes and appearance.
  • Adjust privacy settings for enhanced security.

Summary Table: Installation Methods

MethodCommand ExampleProsCons
Package Managersudo apt install firefoxEasy, auto-updates, stableMay lag behind latest version
Snapsudo snap install firefoxUniversal, sandboxed, auto-updatesSlower startup, larger size
Flatpakflatpak install flathub org.mozilla.firefoxCross-distro, sandboxedRequires Flatpak setup
Manual DownloadDownload + extract + symlinkLatest version, full controlNo auto-updates, manual steps

Conclusion

Installing Mozilla Firefox on Linux is simple and flexible. You can choose the method that fits your needs best, whether it’s the convenience of your distro’s package manager, the universality of Snap or Flatpak, or the control of manual installation. Each method has its strengths, so pick what works for you.

Once installed, Firefox offers a fast, private, and customizable browsing experience on Linux. Keeping it updated ensures you benefit from the latest features and security fixes. Now you’re ready to enjoy the web with Mozilla Firefox on your Linux system.

FAQs

How do I check if Firefox is already installed on Linux?

Open a terminal and type firefox --version. If installed, it shows the version number. Otherwise, it will say command not found.

Can I install Firefox on any Linux distribution?

Yes, Firefox is available for almost all Linux distros via package managers, Snap, Flatpak, or manual download.

Is Firefox Snap better than the package manager version?

Snap offers sandboxing and automatic updates but may start slower. Package manager versions integrate better with your system.

How do I update Firefox installed manually?

Download the latest tarball from Mozilla, extract it, and replace your existing Firefox folder.

Can I run multiple Firefox versions on Linux?

Yes, by installing manually in different folders and using separate profiles, you can run multiple Firefox versions side-by-side.

More from this blog

L

LinuxBloke | Linux Tips, Tricks & Troubleshooting

672 posts