Install Firefox on Linux

Revision Information
  • Revision id: 238224
  • Created:
  • Creator: Danny Colin
  • Comment: [WIP] Update instructions to install from the package manager
  • Reviewed: No
  • Ready for localization: No
Revision Source
Revision Content

This article explains how to download and install Firefox on a Linux.

This article only applies to Linux. For instructions to install Firefox on Mac, see How to download and install Firefox on Mac.For instructions to install Firefox on Linux, see How to install Firefox on Windows.

Install from your distribution package manager (Recommended)

To install Firefox using your distribution package manager, please refer to your Linux distribution's documentation.

This method is the recommended way because it ensures Firefox and all the required libraries are installed and configured optimally for your distribution. However, there may be a small delay between the official release of a new version of Firefox and the moment when your distribution updates the version it distributes. Your distribution may also distribute it without the Firefox branding.

Install from Flatpak

To install Firefox from Flatpak, install and configure Flatpak on your computer. Once Flatpak is installed, go to the Firefox Flathub's page and click the Install button. Alternatively, you can type the following command in a terminal:

flatpak install flathub org.mozilla.firefox

By default, Flatpak installs Firefox in the same locale as your operating system. To use a different language, please follow the instructions on how to use Firefox in another language.

Install outside of a package manager

The support sites for some Linux distributions have complete instructions on how to install Firefox without using a package manager, although a few information may be out of date. For example:

You can also follow the instructions below to manually install on each user's account.

  • Before you install Firefox, make sure that your computer has the required libraries installed. Missing libraries will cause Firefox to be inoperable.
  • The installation file provided by Mozilla in .tar.bz2 format has pre-compiled binary files as opposed to sources. There is no need to compile the program from the source: simply unpack and run the binaries.
  • The following instructions will install Firefox into your home directory. Only the current user will be able to run it.
  1. Download Firefox from the Firefox download page to your home directory.
  2. Open a Terminal and go to your home directory:
    cd ~
  3. Extract the contents of the downloaded file:
    tar xjf firefox-*.tar.bz2
  4. Close Firefox if it's open.
  5. To start Firefox, run the firefox script in the firefox folder:
    ~/firefox/firefox
    Firefox should now start. You can then create an icon on your desktop to run this command.
  6. There's no need to keep the installation file:
    rm firefox-*.tar.bz2

libstdc++5 error

As noted above, you need to install the required libraries for Firefox to work. Many distributions don't include libstdc++5 by default.

"firefox not installed" message or wrong version of Firefox starts

If Firefox is installed following the instructions given above, it must be started (in a Terminal or in a launcher on the Desktop, for example) using the command: ~/firefox/firefox

If you try to start Firefox in a Terminal with the command: firefox, it will either start the package-manager-installed version of Firefox or will tell you the program is not installed.