How To Install Firefox On Linux : Default Browser Installation Steps

Firefox installation on Linux works through package managers, with most distributions offering it in their default repositories. If you’re wondering how to install Firefox on Linux, you’ve come to the right place. This guide covers every major method, from simple command-line installs to manual setups, so you can get Firefox running fast on your system.

Whether you’re using Ubuntu, Fedora, or Arch, installing Firefox is straightforward. You don’t need to be a terminal wizard—just follow the steps below. Let’s start with the most common approach: using your distribution’s package manager.

How To Install Firefox On Linux

This section covers the primary methods for installing Firefox on Linux. We’ll go through package managers, Snap, Flatpak, and manual installation. Pick the one that fits your distro and preference.

Using Your Distribution’s Package Manager

Most Linux distributions include Firefox in their official repositories. This is the easiest and most secure method, as updates come through your system’s update manager.

On Debian And Ubuntu Based Systems

For Ubuntu, Linux Mint, or Debian, use APT. Open a terminal and run these commands:

  1. Update your package list: sudo apt update
  2. Install Firefox: sudo apt install firefox
  3. Launch Firefox from your applications menu or by typing firefox in the terminal.

That’s it. Firefox will be installed with all dependencies. If you prefer the ESR (Extended Support Release) version, use sudo apt install firefox-esr.

On Fedora And RHEL Based Systems

Fedora uses DNF. Open a terminal and run:

  1. Update your system: sudo dnf update
  2. Install Firefox: sudo dnf install firefox
  3. Launch from the menu or type firefox.

For CentOS or RHEL, you might need to enable the EPEL repository first: sudo dnf install epel-release, then install Firefox.

On Arch Linux And Manjaro

Arch users can use Pacman. Run:

  1. Update package database: sudo pacman -Sy
  2. Install Firefox: sudo pacman -S firefox
  3. Launch from the menu or terminal.

Manjaro users can also use Pamac GUI or the terminal with the same commands.

On openSUSE

For openSUSE, use Zypper:

  1. Update repositories: sudo zypper refresh
  2. Install Firefox: sudo zypper install firefox
  3. Launch from the menu.

This method works for both Leap and Tumbleweed.

Using Snap Package

Ubuntu and some other distros offer Firefox as a Snap package. This is pre-installed on newer Ubuntu versions. If you need to install it manually:

  1. Ensure Snap is installed: sudo apt install snapd
  2. Install Firefox: sudo snap install firefox
  3. Launch from the menu or type firefox in the terminal.

Snap packages are sandboxed and update automatically. However, they may take longer to start compared to native packages. Some users perfer the traditional APT version for better performance.

Using Flatpak

Flatpak is another universal packaging system. It works on almost any Linux distro. To install Firefox via Flatpak:

  1. Install Flatpak if not present: sudo apt install flatpak (or use your distro’s package manager).
  2. Add the Flathub repository: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  3. Install Firefox: flatpak install flathub org.mozilla.firefox
  4. Launch with: flatpak run org.mozilla.firefox or from the applications menu.

Flatpak provides a consistent runtime environment. It’s a good choice if you want isolation from system libraries.

Manual Installation From Mozilla

If you want the latest version directly from Mozilla, download the tarball. This method gives you control but requires manual updates.

  1. Visit the official Firefox download page on another browser.
  2. Download the Linux tarball (usually firefox-*.tar.bz2).
  3. Open a terminal and navigate to the download directory: cd ~/Downloads
  4. Extract the tarball: tar xjf firefox-*.tar.bz2
  5. Move the extracted folder to /opt: sudo mv firefox /opt
  6. Create a symbolic link: sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox
  7. Launch Firefox by typing firefox in the terminal or create a desktop shortcut.

For a desktop entry, create a file at ~/.local/share/applications/firefox.desktop with the following content:

[Desktop Entry]
Name=Firefox
Exec=/opt/firefox/firefox %u
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Type=Application
Categories=Network;WebBrowser;

This manual method ensures you have the latest version, but you’ll need to repeat steps for updates.

Using The Official Repository For Specific Distros

Some distros like Linux Mint have Firefox pre-installed. If not, use the Software Manager GUI. Search for “Firefox” and click install. This is the same as using APT but with a graphical interface.

For Pop!_OS, the Pop Shop includes Firefox. Just search and install.

Post-Installation Steps

Once Firefox is installed, you might want to configure it. Here are a few quick tips:

  • Set Firefox as your default browser: Go to Settings > General > Default Browser.
  • Import bookmarks from another browser using the import wizard.
  • Install extensions like uBlock Origin for ad blocking.
  • Sync your Firefox account to access bookmarks across devices.

If you installed via Snap or Flatpak, note that file access might be restricted. You can grant permissions using the respective tools.

Updating Firefox

Updates depend on your installation method:

  • Package manager: Use sudo apt upgrade or your distro’s update tool.
  • Snap: Updates automatically, or run sudo snap refresh firefox.
  • Flatpak: Run flatpak update.
  • Manual: Download the new tarball and replace the /opt/firefox folder.

Always keep Firefox updated for security and performance.

Troubleshooting Common Issues

Sometimes installations don’t go smoothly. Here are common problems and fixes:

Firefox Won’t Launch

Check if the package is installed correctly. Run which firefox to see if the binary exists. If not, reinstall. For Snap or Flatpak, ensure the service is running.

Missing Dependencies

If you get errors about missing libraries, run sudo apt --fix-broken install or sudo dnf check. This resolves dependency issues.

Snap Version Is Slow

Some users find Snap Firefox slow to start. Consider switching to the APT version. Remove the Snap version with sudo snap remove firefox, then install via APT.

Manual Installation Permission Errors

If you can’t launch Firefox after manual install, check file permissions. Run sudo chmod +x /opt/firefox/firefox and ensure the symlink is correct.

Choosing The Right Installation Method

Your choice depends on your needs. Package manager is best for most users. Snap and Flatpak offer sandboxing but may have performance trade-offs. Manual installation is for those who want absolute control.

For beginners, I recommend the package manager method. It’s simple and integrates with your system’s update mechanism. Advanced users might prefer Flatpak for its isolation.

If you’re on Ubuntu 22.04 or later, Firefox comes as a Snap by default. You can remove it and install the APT version if you preffer.

Frequently Asked Questions

How Do I Install Firefox On Linux Without A Package Manager?

You can download the tarball from Mozilla’s website and extract it manually. Follow the manual installation steps above. This method works on any distribution.

Is Firefox Pre-installed On Linux?

Many distributions include Firefox by default, such as Ubuntu, Fedora, and Linux Mint. If not, you can install it easily using the package manager.

Can I Install Firefox On Linux Using The Terminal?

Yes. Use your distribution’s package manager commands like sudo apt install firefox or sudo dnf install firefox. The terminal is the fastest method.

What Is The Difference Between Firefox And Firefox ESR?

Firefox ESR (Extended Support Release) is a version with fewer updates, aimed at enterprises. It’s more stable but lacks the latest features. Install it with sudo apt install firefox-esr.

How Do I Uninstall Firefox From Linux?

Use your package manager. For APT: sudo apt remove firefox. For Snap: sudo snap remove firefox. For Flatpak: flatpak uninstall org.mozilla.firefox. For manual install, delete the folder and symlink.

Final Thoughts

Installing Firefox on Linux is a breeze once you know the right commands. Whether you choose the package manager, Snap, Flatpak, or manual method, you’ll have a fast and secure browser in minutes. Remember to keep it updated and customize it to your liking.

If you run into any issues, the Linux community is full of helpful resources. Forums like Reddit’s r/linux or Ask Ubuntu can provide quick solutions. Now go ahead and enjoy browsing with Firefox on your Linux machine.

This guide covered all major methods, so you should have no trouble getting started. If you preffer a graphical approach, the Software Center on most distros also works. Just search for Firefox and click install.

One last tip: if you’re using a rolling release distro like Arch, always check the AUR for community-maintained versions. But for most users, the official repositories are sufficent.

Happy browsing, and remember to support open-source software like Firefox.