Many Linux distributions include Firefox by default, and most have a package management system that lets you easily install Firefox. Generally, you should install from package management. Package management will:

Ensure that you have all the required libraries

Install Firefox in a way that works best with your distribution

Create shortcuts to launch Firefox

Make Firefox available to all users of your computer

Make removing Firefox work the same as removing any other application

Package management also has some downsides:

It may not give you the latest version of Firefox

It may give you a version without Firefox branding

Installing from a package manager

To install Firefox using the package manager, please refer to the documentation of the Linux distribution you're using.

Installing outside of a package manager

Complete instructions for installing Firefox outside of package management may be available at your distribution's support website. For example:

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 does not contain sources but pre-compiled binary files, therefore you can simply unpack and run them. There is no need to compile the program from source.

The following instructions will install Firefox into your home directory, and only the current user will be able to run it.