Install Mozilla Firefox on Debian 12 Bookworm

In this guide, you will learn to Install the Latest Mozilla Firefox Web Browser on Debian 12 Bookworm in 3 different ways using Linux tarball, Flatpak, and Snap.

Debian Linux uses Firefox ESR (Extended Support Release) as its default web browser. You can follow this guide to install Firefox and NOT affect the existing Firefox ESR in your system.

How To Install Latest Mozilla Firefox on Debian 12 Bookworm?

Before you start your Firefox installation, you must have access to your server as a non-root user with sudo privileges. For this purpose, you can follow this guide on Initial Server Setup with Debian 12 Bookworm.

Then, proceed to the following steps to complete this guide. You can choose one of the following methods to install Firefox on your server:

  • Method 1: Use Linux Tarball
  • Method 2: Use Flatpak
  • Method 3: Use Snap

Method 1 – Installing Firefox with Linux Tarball on Debian 12

First, you need to visit the Mozilla Downloads page and get the tarball package by clicking on Download Now.

Download Firefox for Linux

Next, you must extract your downloaded file to the /opt directory. To do this, open a terminal and run the following command:

sudo tar -jxf ~/Downloads/firefox-*.tar.bz2 -C /opt/

When you are done, you must create an app shortcut for Firefox on Debian 12. To do this, follow the steps below:

From your terminal, run the command below to create the local app directory:

sudo mkdir -p ~/.local/share/applications

Then, create and open a shortcut file for Firefox by using your favorite text editor, here we use the vi editor:

sudo vi ~/.local/share/applications/firefox.desktop

Add the following content to the file:

[Desktop Entry]
Name=Firefox Stable
Comment=Web Browser
Exec=/opt/firefox/firefox %u
[Desktop Action Private]
Exec=/opt/firefox/firefox --private-window %u
Name=Open in private mode

When you are done, save and close the file.

At this point, you can easily launch your Firefox from your Debian 12 desktop. From your activities search for Firefox, you must see the Firefox icon.

Launch Mozilla Firefox

Note: If you don’t see anything log out and log in again.

Method 2 – Installing Firefox via Flatpak on Debian 12

In this method, you must have Flatpak installed on your server and enabled Flathub. To do this, you can install Flatpak with the command below:

sudp apt install flatpak -y

Enable the FlatHub repo with the following command:

flatpak remote-add --if-not-exists flathub

Now follow the steps below to install Firefox with Flatpak:

First, use Flatpak to search Firefox on Debian 12:

flatpak search firefox
Name   Description                 Application ID     Version     Branch Remotes
Firef… Fast, Private & Safe Web B… …g.mozilla.firefox 116.0.2     stable flathub
Mullv… Free the internet from mas… …ad.MullvadBrowser 12.5.2      stable flathub
Mojav… Mojave-Style Theme for GTK… …heme.Mojave-light 0.1         3.22   flathub
Fires… Client for accessing 3D vi… …r.FirestormViewer stable flathub
Bleac… Cleans files to free disk … …eachbit.BleachBit v4.4.2      stable flathub
Floorp Floorp browser              one.ablaze.floorp  11.1.0      stable flathub
Joplin A free, open source note t… …ic.joplin_desktop 2.11.11     stable flathub
Libre… LibreWolf Web Browser       …brewolf-community 116.0.2-1   stable flathub
Vieb   Vim Inspired Electron Brow… dev.vieb.Vieb      10.2.0      stable flathub
Gabut… Simple and Fast Download M… …gabutakut.gabutdm 2.1.6       stable flathub

Then, install the latest stable Firefox by using the command below:

flatpak install flathub org.mozilla.firefox

When it is completed, you can run your Firefox by using the following command:

flatpak run org.mozilla.firefox

Also, you can create a desktop icon by using the command below:

ln -s \ /var/lib/flatpak/exports/share/applications/org.mozilla.firefox.desktop \ .local/share/applications/firefox-flatpak.desktop

With this option, you can easily launch your Firefox from your Debian 12 desktop.

Method 3 – Installing Firefox via Snap on Debian 12

Also, you can use Snap to set up your Mozilla Firefox. First, install the Snap package on Debian 12 Bookworm with the command below:

sudo apt install snapd

Then, start and enable Snap by using the following commands:

# sudo systemctl enable snapd
# sudo systemctl start snapd

Finally, use the following command to install Firefox on your server:

sudo snap install firefox

When it is completed, from your Debian 12 desktop, you can launch your Firefox.

How To Uninstall Mozilla Firefox?

If you no longer want to use Firefox, you can easily uninstall and remove it from your server.

For the Method 1 installation with Linux tarball, you should use the following commands:

# sudo rm -r /opt/firefox 
# sudo rm ~/.local/share/applications/firefox.desktop

For the Method 2 installation with Flatpak, you should use the command below:

flatpak uninstall --delete-data org.mozilla.firefox

And if you use Snap, you can uninstall Firefox from Debian 12 with the following command:

sudo snap remove --purge firefox


At this point, you have learned to install Mozilla Firefox on Debian 12 Bookworm. You can install it with Linux tarball, Flatpak, and Snap. You can choose the one that you are more comfortable with. Also, you can easily uninstall Firefox from your server by using all the methods.

Hope you enjoy using it. If you need any help, you can comment for us.


Please enter your comment!
Please enter your name here
Captcha verification failed!
CAPTCHA user score failed. Please contact us!
Latest Articles


Most Popular