How to Install Firefox on Raspberry Pi? (Latest Version)
Firefox is one of the best web browsers around, especially if you care about privacy and security. In the past, installing Firefox on Raspberry Pi wasn’t always straightforward, especially if you wanted the latest version with all of the newest features. In this article, I’ll show you how.
The latest version of Firefox is pre-installed for Raspberry Pi OS (codename bookworm). For Raspberry Pi OS Legacy (codename bullseye), the official version in the repository is Firefox ESR; it’s possible to get the latest version by adding the Firefox repository.
So yes, there is a solution! I will explain everything to you in this tutorial, starting with the difference between the two versions and followed by steps to install Firefox depending on which release of Raspberry Pi OS you’re running.
If you’re looking to quickly progress on Raspberry Pi, you can check out my e-book here. It’s a 30-day challenge where you learn one new thing every day until you become a Raspberry Pi expert. The first third of the book teaches you the basics, but the following chapters include projects you can try on your own.
What’s the Difference Between Firefox RR and Firefox ESR?
Firefox RR is the latest version with all the newest features. Firefox ESR is an older but more stable version.
The instructions below will depend on which release of Raspberry Pi OS you’re running. If you’re not sure, check out this article to learn about their differences.
Before we go into the install steps, let’s discuss the differences between Firefox RR and Firefox ESR in more detail.
What Is Firefox RR?
Firefox RR stands for “Rapid Release” and is the latest stable Firefox version available. This version is the one we typically get on our PCs.
Firefox is updated very frequently by the developers. New versions are typically released to users immediately, as soon as there are a few changes. That’s why we’re already at version numbers above 128, even if this software isn’t very old.
You can expect a major version approximately every 4 weeks, as that’s the current development cycle for Firefox.
There are also development versions with shorter release cycles, but that’s not our topic for today. We want a recent version that works, not something too buggy 🙂
What Is Firefox ESR?
Firefox ESR stands for “Extended Support Release.”
If you are lost in all these new words and abbreviations, request my free Raspberry Pi glossary here (PDF format)!
Download now
In critical environments (in a company for example), getting new updates every month isn’t the ideal solution. Updates can include bugs and habit changes for users.
This is why the ESR version exists. It’s an older version but more stable version of Firefox that includes only the latest security updates without the latest features or improvements. If you’re familiar with Ubuntu, it’s similar to the idea of LTS versions (Long-Term Support).
Installing Firefox on Raspberry Pi OS (Bookworm)
If you’ve installed Raspberry Pi OS Desktop (codename Bookworm), Firefox should already be installed by default. It’s under the main menu > Internet. To get the latest version, you simply have to update your system.
If Firefox is not there for some reason, follow the steps below to install it.
Installation
To install Firefox (RR), you can use either the desktop or command-line method below.
On Desktop
Here’s how to install Firefox (RR) on the desktop:
- Open the main menu > Preferences > Add/Remove Software.
- Type “firefox” into the search bar and hit Enter.
- Check the box next to “Mozilla Firefox web browser” (it should be the first result).
- Click “OK” to confirm.
- The system will ask for your password to complete the installation.
From the Command Line
It’s often faster to install software from the command line IF you are comfortable with the process.
If you have a terminal open or are connected via SSH, here’s how to install Firefox (RR):
- Update the package list:
sudo apt update
- Install the Firefox package:
sudo apt install firefox
Are you a bit lost in the Linux command line? Check this article first for the most important commands to remember and a free downloadable cheat sheet so you can have the commands at your fingertips.
First Start
Firefox is now installed and you should see be able to launch it from the main menu.
It's a free PDF guide containing every Raspberry Pi Linux command you should know!
Download now
Installing Firefox on Raspberry Pi OS Legacy (Bullseye)
If you’re using the older Raspberry Pi OS Legacy (codename bullseye), Firefox is not included with the desktop and has to be installed.
You can choose between Firefox ESR or the latest Firefox RR instead. I’ll show you how to install both of them. Jump down to the version you want below.
Installing Firefox ESR: The Default Version
Getting Firefox ESR on Raspberry Pi OS (bullseye) is pretty simple. It’s the same way as you would any other software.
If you need help with installation, decide whether you want use the desktop interface or a terminal. Then follow the steps in the appropriate section below.
On Desktop
Here’s how to install Firefox (ESR) using the desktop interface:
- Open the main menu > Preferences > Add/Remove Software.
- In the search bar, type “firefox-esr” and hit Enter.
- Check the box next to “Mozilla Firefox web browser” (it should be the first one on the list).
- Click on “OK” to confirm.
- The system will ask for your password to complete the installation.
From the Command Line
If instead you’d rather install Firefox (ESR) from a terminal or SSH, here’s how:
If you are lost in all these new words and abbreviations, request my free Raspberry Pi glossary here (PDF format)!
Download now
- Update the package list:
sudo apt update
- Install the Firefox-ESR package:
sudo apt install firefox-esr
First Start
Firefox is now installed and you should see be able to launch it from the main menu:
The browser works well, but it might be 10 to 15 versions older than the latest version. For example, Firefox ESR on Raspberry Pi OS is currently in version 115 (versus 128 on my PC).
This isn’t a big deal most of the time, but it may not be optimal if you are really used to the latest features. If you’d prefer to use the latest version instead, keep reading! I’ll explain how in the next section.
Installing Firefox RR: The Latest Version
Since Firefox RR isn’t available on the official repo for Raspberry Pi OS Legacy (bullseye), installing the latest version of Firefox isn’t as straightforward as the methods above.
You’ll be adding the official Firefox repository maintained by Mozilla, which will then let you download and install the latest version like any other package on your system.
Installation
Note: If you are not used to the command line yet, and not confident doing this, the easiest way would be to install Pi-Apps on your system and use their tool to install Firefox.
Here’s how to get Firefox (RR) from official sources:
- Open a terminal (SSH is fine too), and type the following commands.
- Create a new sources.list file using your favorite text editor:
sudo nano /etc/apt/sources.list.d/mozilla-firefox.list
- Add this line to the file:
deb http://ppa.launchpad.net/mozillateam/ppa/ubuntu focal main
- Save and exit (CTRL+X, Y, Enter).
- Add the signing key for this repository:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 9BDB3D89CE49EC21
- We can now update the package list and install Firefox (RR):
sudo apt update
sudo apt install firefox
As you can see, there’s no mention of “ESR” in the package name this time.
In theory, everything should work properly, and you now have the latest version of Firefox.
First Start
You can start Firefox from the main menu > Internet > Firefox Web Browser.
You should now have the latest version running on your Raspberry Pi:
It's a free PDF guide containing every Raspberry Pi Linux command you should know!
Download now
Want to chat with other Raspberry Pi enthusiasts? Join the community, share your current projects and ask for help directly in the forums.
Conclusion
Congrats! You now know how to get Firefox on your Raspberry Pi. You know the differences between Firefox ESR and Firefox RR, and how to install each one.
I hope this tutorial was useful for you. If it’s the case, feel free to share it on your social media—your support helps me a lot.
By the way, Firefox is not necessarily the best browser for your Raspberry Pi (click on the link to read my comparison with the other options, I tested 5 of them on mine so you don’t have to).
Whenever you’re ready, here are other ways I can help you:
The RaspberryTips Community: If you want to hang out with me and other Raspberry Pi fans, you can join the community. I share exclusive tutorials and behind-the-scenes content there. Premium members can also visit the website without ads.
Master your Raspberry Pi in 30 days: If you are looking for the best tips to become an expert on Raspberry Pi, this book is for you. Learn useful Linux skills and practice multiple projects with step-by-step guides.
The Raspberry Pi Bootcamp: Understand everything about the Raspberry Pi, stop searching for help all the time, and finally enjoy completing your projects.
Master Python on Raspberry Pi: Create, understand, and improve any Python script for your Raspberry Pi. Learn the essentials step-by-step without losing time understanding useless concepts.
You can also find all my recommendations for tools and hardware on this page.
Your command for apt-key generates an error: “WARNING: no command supplied. Trying to guess what you mean …”
I’m trying to get the RR version because the ESR version (78.10?) causes the pi (3B+) to hang. Running Buster.
Apr 28,2021
Seems there is a bug in WordPress, it doesn’t display the double dash correctly…
Even in the comments it doesn’t work, I pasted it here: https://webinpact.com/paste/?id=608a4697c1d3b
Firefox-RR keeps crashing in my Raspberry Pi 400 running on Raspberry Pi Os please suggest a troubleshooting guide