How to Install Firefox as a DEB Package On Ubuntu Or Linux Mint How to Install Firefox as a DEB Package On Ubuntu Or Linux Mint

How to Install Firefox as a DEB Package On Ubuntu Or Linux Mint

How to Install Firefox as a DEB Package On Ubuntu Or Linux Mint

In this tutorial, we will show you the step by step guide to install Firefox internet browser on Ubuntu or Linux Mint using Debian package. Firefox is one of the most popular internet browser right now and it has amazing support for the Linux platforms too.

How to Install Firefox as a DEB Package On Ubuntu Or Linux Mint

There are two ways to install Firefox as a deb package.

  1. Download the DEB package
  2. Install an APT repository from Mozilla.

The following guides is applicable for the Ubuntu and it’s derivatives, Linux Mint and other Debian based distros. Let’s have a look into the step to install Firefox

Run the following command to  create a directory to store the APT repository keys.

sudo install -d -m 0755 /etc/apt/keyrings

Now, run the following command to import the Mozilla APT repository signing key.

wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O- | sudo tee /etc/apt/keyrings/packages.mozilla.org.asc > /dev/null

Add the Mozilla APT repository to your sources list by running the below commands.

echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null

You are almost there as now run the followign commands to configure APT to prioritize packages from the Mozilla repository.

echo '
Package: *
Pin: origin packages.mozilla.org
Pin-Priority: 1000
' | sudo tee /etc/apt/preferences.d/mozilla 

Now, Its time to install Firefox. Run the following commands to update your system and install Firefox in your Linux distros.

sudo apt-get update
sudo apt-get install firefox

 

Leave a Reply

Your email address will not be published. Required fields are marked *