How to clean uninstall and reinstall Firefox in Ubuntu

Mozilla Firefox is considered Ubuntu's official web browser, so every Ubuntu distributions come with Firefox installed. This article explains how to clean uninstall and install Firefox on your Ubuntu PC.

Mozilla Firefox is an open source, free internet-browsing application. Mozilla Firefox considered Ubuntu’s official web browser, so almost every Ubuntu distribution comes with Firefox installed.

If your Linux system lacks Firefox browser for any reason, we’ll help you install the latest Firefox version. Moreover, we’ll show you how to install Firefox beta. Also, if you haven’t liked your installed Firefox or whatever your reasons, we’ll help you uninstall it smoothly.

FireFox Browser
FireFox Browser

This article will cover two methods of installing Mozilla Firefox. The first method is to install a stable, reliable Firefox version. The second method is to install a beta version still under test and not stable. We’ll also cover how to uninstall Mozilla Firefox just in case you need to remove it.

First Method: Install a Stable Mozilla Firefox Version

If you need to install a stable and the most updated Mozilla Firefox version then follow the below steps.

Step 1. First, ensure that your Ubuntu system is up-to-date using the following command.

sudo apt-get update
sudo apt-get upgrade

Step 2. To install a stable version from Mozilla Firefox.

sudo apt install firefox

Download and Install Firefox
Download and Install Firefox

Step 3. Check Mozilla Firefox version, after it had been installed.

firefox --version

Stable Firefox Version
Stable Firefox Version

Second Method: Install a Beta Mozilla Firefox Version

If you need to test the new beta version of Mozilla Firefox, follow the following steps. It’s highly recommended to be careful while using this beta version of Mozilla Firefox, which is still in the testing phase, so it can crash anytime.

Step 1. Add the official Mozilla Firefox beta ppa to your Ubuntu system.

sudo apt-add-repository ppa:mozillateam/firefox-next

Add Repository for Firefox Beta
Add Repository for Firefox Beta

Step 2. Update your Ubuntu repository.

sudo apt-get update

Update System Repository
Update System Repository

Step 3. Upgrade your Ubuntu repository.

sudo apt-get upgrade

Upgrade your System
Upgrade your System

As you can see in the previous screenshot, the Mozilla Firefox application will be added to your repository.

Step 4. Now download and install the Mozilla Firefox application.

sudo apt install firefox

Download and Install Firefox
Download and Install Firefox

Step 5. Next, you can check the current installed Mozilla Firefox version.

firefox --version

Current Firefox Version

As you can see in the previous screenshot, the current version is the beta one.

Uninstall Mozilla Firefox From Your Ubuntu

Consider removing or uninstalling the current Mozilla Firefox application. To do so, follow the next steps to remove Mozilla Firefox from your Ubuntu system.

Step 1. To remove the Mozilla Firefox application along with any other configurations.

sudo apt-get purge firefox

Purge Firefox Completely
Purge Firefox Completely

After the purge process completes successfully you will get something like that:

After Purging Firefox
After Purging Firefox

Step 2. To remove the created Mozilla Firefox folder which is located in “/etc/firefox” that contains the Firefox users profiles.

sudo rm -Rf /etc/firefox/

Completely Remove Firefox Users Profiles
Completely Remove Firefox Users Profiles

Step 3. To remove the Mozilla Firefox downloaded Add-ons which is located in “/usr/lib/”. The next command should remove two directories.

sudo rm -Rf /usr/lib/firefox*

Completely Remove Firefox Installed Addons
Completely Remove Firefox Installed Add-ons

Conclusion

That’s all about complete uninstallation as well as installing Mozilla Firefox on your Ubuntu PC. You’ve also learned how to install a developing beta version so you can look at what’s in store for the upcoming FireFox browser.

Hend Adel
Hi! I'm Hend Adel, a freelancer technical geek with successful experience in Database, Linux and many other IT fields. I help to build solutions to suit business needs and creating streamlined processes. I love Linux and I'm here to share my skills via FOSS Linux! Thanks for reading my article.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

24,438FansLike
181FollowersFollow

LATEST ARTICLES

How to create a Fedora Games Live USB drive in Linux

One of the best Fedora spins that has been for a while and also being well maintained is the Fedora Games. The Fedora Games spin is a great showcase of the best games available in the Fedora operating system.

RECENT COMMENTS

Ubuntu 19.10 beta overview
It may be early, but I've been looking forward to the release of Ubuntu 19.10 for some time now. As an impatient person, and promised readers in the FOSSLinux article announcing the release of Eoan Ermine that we would provide you a review of Ubuntu 19.10 Eoan Ermine - Beta.  So, here it goes.
best linux distros for laptops
Whether buying a Linux pre-installed laptop or selecting a Linux distro for your existing laptop, there are many things to consider. Let's take you through some of the best Linux distros that are optimized for Laptops in this 2019 edition of the article. Read on.
cool and fun linux commands
The real purpose of this article is to help Linux newbies get comfortable and confident with the Linux command-line.  While knowledge and comfort of the Linux GUI allow great power, it is the mastery of the command line, or CLI, affords the Linux user unlimited power and certifies them as a Linux power user well on their way to becoming an expert.