Mozilla Firefox is a popular web browser that is compatible with different devices, such as Windows, Mac, Android, iOS, Linux, Chromebook, etc. Among these platforms, installing Firefox on Linux requires special attention and takes time. To get the Firefox browser on Linux, you need to execute the installation command in the Terminal window.
How to Get Firefox on Linux using Terminal
You can install Firefox on all Linux distributions by using the Terminal. But, the execution command will vary based on the distribution. Press Ctrl+Alt+T simultaneously on your keyboard to open the Terminal and enter the code below to install the Firefox browser.
Ubuntu, Debian, and Linux Mint
$ sudo apt install firefox
Red Hat, CentOS, and Fedora
$ sudo dnf install firefox
Firebox on Snap
(1) Install Snap on your Linux, enter the code as
Information Use !!
Concerned about online trackers and introducers tracing your internet activity? Or do you face geo-restrictions while streaming? Get NordVPN - the ultra-fast VPN trusted by millions, which is available at 69% off + 3 Months Extra. With the Double VPN, Split tunneling, and Custom DNS, you can experience internet freedom anytime, anywhere.
sudo apt install snapd
(2) To install Firefox, enter the command on the Terminal as
sudo snap install firefox
(3) To launch Firefox, enter the command as
snap run firefox
Firebox on Flatpack
(1) Open the Terminal on your system.
(2) Enter the command to install Flatpak.
sudo apt install flatpak
(3) Enter the below command to install Firefox on your system.
sudo flatpak install flathub org.mozilla.firefox -y
(4) To open the Firefox application, enter the command
flatpak run org.mozilla.firefox
Arch Linux and Manjaro
$ sudo pacman -S firefox
Firebox on OpenSUSE
$ sudo zypper in MozillaFirefox
How to Install Firefox Browser from the Website
(1) Open a browser on your PC.
(2) Go to the Firefox website and select your Linux OS and preferred language.
(3) Click the Download Now button to download the browser file on your PC.
(4) Once the application has been downloaded, open the Terminal on your system and enter the code to extract the files.
(5) Enter the file location that you have downloaded.
(6) To extract the contents, enter the command as.
tar xjf firefox-*.tar.bz2
(7) To move the uncompressed folder, enter the command.
mv firefox /opt
(8) You can create a symlink for the Firefox
ln -s /opt/firefox/firefox /usr/local/bin/firefox
These are the possible ways to download the Firefox browser. As Firefox frequently releases updates, make sure to update the Firefox browser to experience new features on Linux.
How to Uninstall Firefox on Linux
(1) Open the Terminal Window, run the command as
sudo apt-get purge firefox
(2) Check whether the .mozila folder still exists and remove it.
(3) Firefox will store cookies in folders like .marcomedia and .adobe. Ensure to delete them.
(4) Run the following command to remove the folder in the root directories located at /etc/firefox/.
sudo rm -Rf /etc/firefox/
(5) You can read the firefox addons by running the following command.
sudo rm -Rf /usr/lib/firefox*
You can change the search engine on Firefox in the settings section of the browser.
The reasons for Firefox not working is excessive cache files, outdated app version, and temporary malfunctions. To fix these issues, clear the cache on Firefox and update the app.
Disclosure: If we like a product or service, we might refer them to our readers via an affiliate link, which means we may receive a referral commission from the sale if you buy the product that we recommended, read more about that in our affiliate disclosure.