This brief tutorial explains how to install the Firefox browser on Debian based Linux distributions.

After reading this tutorial you will learn different methods to get Firefox installed in your system. This article is optimized for Debian based Linux distributions, but most methods work in other Linux systems.

Techniques explained in this article include: Manual installation from Firefox official site, using the span packages manager, using flatpack and installing Firefox Extended Support Release (ESR) with the apt packages manager.

At the end of the article, you can find a bonus section showing how to install the Opera web browser.

All steps described in this tutorial include screenshots for elaborate illustration intended for all Linux users to easily follow them.

Installing Firefox on Debian and Other Linux Distributions

The first section of this tutorial explains the most widely used method to get the Firefox web browser installed in your system.

This technique works not only in Debian systems but also in all Linux distributions.

The first step is to download Firefox from https://mozilla.org as shown in the screenshot below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-67.png" data-lazy- height="411" src="data:image/svg xml,” width=”690″>

Save the file in your computer as shown:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-71.png" data-lazy- height="466" src="data:image/svg xml,” width=”891″>

Extract the downloaded file in the /opt directory by running this command:

sudo tar xvjf firefox-98.0.1.tar.bz2 -C /opt

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-73.png" data-lazy- height="157" src="data:image/svg xml,” width=”908″>

Then, create a file named firefox-stable.desktop under the /usr/share/applications/ directory using the command below.

sudo nano /usr/share/applications/firefox-stable.desktop

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-76.png" data-lazy- height="178" src="data:image/svg xml,” width=”1059″>

Paste the following code inside the file you just created.

[Desktop Entry]

Name=Firefox Stable

Comment=Web Browser

Exec=/opt/firefox/firefox %u

Terminal=false

Type=Application

Icon=/opt/firefox/browser/chrome/icons/default/default128.png

Categories=Network;WebBrowser;

MimeType=text/html;text/xml;application/xhtml xml;application/xml;application/vnd.mozilla.xul xml;application/rss xml;application/rdf xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;

StartupNotify=true

Actions=Private;

[Desktop Action Private]

Exec=/opt/firefox/firefox –private-window %u

Name=Open in private mode

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-82.png" data-lazy- height="493" src="data:image/svg xml,” width=”1306″>

Create a symbolic link to be able to run Firefox from the command line by executing the code below.

sudo ln -s /opt/firefox/firefox /usr/local/bin/firefox

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-87.png" data-lazy- height="188" src="data:image/svg xml,” width=”1028″>

Now, Firefox must be successfully installed in your system.

Installing Firefox in Linux Using Snap

This section shows how to install Firefox in Linux using the snap packages manager.

Begin by installing snap in your system by running the command below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-92.png" data-lazy- height="541" src="data:image/svg xml,” width=”1111″>

After installing snap, install Firefox by executing the command shown below.

sudo snap install firefox

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-96.png" data-lazy- height="242" src="data:image/svg xml,” width=”774″>

Now you can run Firefox using this command:

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-98.png" data-lazy- height="314" src="data:image/svg xml,” width=”1114″>

How to Install Firefox in Debian Using Flatpack

One way to install Firefox is through using flatpack. To do that, install flatpack by running the command below.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-105.png" data-lazy- height="593" src="data:image/svg xml,” width=”957″>

Then run the command shown in the following screenshot.

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

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-106.png" data-lazy- height="310" src="data:image/svg xml,” width=”1363″>

You can now use flatpack to install Firefox. Execute the command below.

sudo flatpak install flathub org.mozilla.firefox -y

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-110.png" data-lazy- height="697" src="data:image/svg xml,” width=”1352″>

Run the command shown below to open the installed Firefox.

flatpak run org.mozilla.firefox

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-111.png" data-lazy- height="378" src="data:image/svg xml,” width=”1152″>

Installing Firefox ESR (Extended Support Release) Using Apt

This section explains how to install the Firefox ESR version using the apt/apt-get packages manager.

The method explained in this section is useful only for Debian and its based Linux distributions.

What is Firefox ESR

The Firefox Extended Support Release (Firefox ESR) is developed for organizations in need of massive management including bulk set ups and maintenance. Although the ESR version does not include the last updates, it includes last security updates and stability fixes.

Install the Firefox ESR version by running the command shown in the screenshot below.

sudo apt install firefox-esr-l10n-ast -y

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-113.png" data-lazy- height="565" src="data:image/svg xml,” width=”1216″>

After following this process, Firefox ESR edition should be successfully installed in your system.

Bonus: Installing Opera on Debian Linux

Opera is one of the best web browsers in the market and I decided to include its installation process in this tutorial.

The instructions below are only useful for Debian based Linux distributions including the apt packages manager.

Start off by entering the link https://www.opera.com/download and download the Opera browser.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-114.png" data-lazy- height="359" src="data:image/svg xml,” width=”832″>

Save the file in your computer.

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-115.png" data-lazy- height="462" src="data:image/svg xml,” width=”899″>

After downloading the file, install it by running the following command where must be replaced with the Opera version you just downloaded.

sudo dpkg -i opera-stable_<version>_amd64.deb

<img data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/word-image-116.png" data-lazy- height="405" src="data:image/svg xml,” width=”1097″>

By doing that, Opera should be successfully installed.

Firefox VS Opera

Opera includes valuable features which are not present in Firefox or other web browsers, some of them are listed below:

  • Free & unlimited VPN
  • Ad blocker
  • Crypto Wallet
  • Battery saver
  • Search in tabs
  • Workspaces
  • Visual bookmarks
  • Mouse gestures

When compared to Google Chrome, Opera advantages also include:

  • Built-in Snapshot (Included in Firefox)
  • Crypto mining protection (Included in Firefox)

Two last features are not included in Google Chrome but are present in Firefox. Yet the first list shows the considerable advantages of Opera over Firefox, including security improvements and features like free and unlimited VPN service.

Web browser alternatives:

Other available web browsers for Linux are listed below:

  • GNOME Web
  • Vivaldi
  • Falkon
  • Konqueror

There are also available text mode web browsers like links, links2, lynx and emacs which are described in this article.

Conclusion:

As you can see, installing Firefox (or Opera) browser is an easy task any Linux user level can achieve by executing a few steps given. Fortunately, Linux commonly offers different techniques to achieve the same result. This tutorial includes the most popular ones.

As said previously, except for the method to install the ESR version and Opera, the rest are useful for all Linux distributions supporting Snap and Flatpack. There are additional web browsers you can try like Google Chrome or Chromium, despite both Opera and Firefox including more interesting features and seem to win performance and security comparisons.

If you like using the Linux terminal, you may want to give a look at the text mode web browsers listed in the last section of the article.

Thank you for reading this tutorial explaining how to install Firefox in Debian. Keep following LinuxHint for additional Linux professional articles.

About the author

<img data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2022/04/echo/linuxinstitute_icono-150×150.png" height="112" src="data:image/svg xml,” width=”112″>

David Adams

David Adams is a System Admin and writer that is focused on open source technologies, security software, and computer systems.