User Agents

Web browsers and everyday web tech, explained

Install Firefox on Arch Linux: Step-by-Step

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide walks you through installing Firefox on Arch Linux using the official package manager, pacman. You'll have a working Firefox browser in a few minutes, whether you're on a fresh install or an existing system. The steps cover both the standard stable version and how to handle common issues like missing dependencies or a broken package database.

What You'll Need

  • An Arch Linux system (or an Arch-based distro like Manjaro, though commands may differ slightly).
  • Root access (you'll use sudo for pacman commands).
  • An active internet connection.
  • Basic familiarity with the terminal.

Step-by-Step

  1. Open a terminal. You can use any terminal emulator (e.g., GNOME Terminal, Konsole, or the TTY).
  2. Update your system (recommended). Run sudo pacman -Syu to synchronize the package database and update all packages. This avoids potential dependency conflicts. If you've updated recently, you can skip this, but it's a good habit.
  3. Install Firefox. Run sudo pacman -S firefox. Pacman will show you the package details and ask for confirmation. Type y and press Enter when prompted.
  4. Wait for the download and installation to finish. This typically takes a minute or two depending on your internet speed.
  5. Launch Firefox. You can start it from your application menu (look for "Firefox" under Internet or Applications) or run firefox in the terminal. The first launch may take a few seconds as it sets up your profile.
  6. Verify the installation. Once Firefox opens, you can check the version by going to about:firefox in the address bar or by running firefox --version in the terminal.

Common Mistakes

  • Not updating first. Installing Firefox on an outdated system can lead to dependency errors. Always run sudo pacman -Syu before installing new packages.
  • Using the wrong package name. The package is called firefox, not firefox-esr or firefox-beta. Those are separate packages if you want a different version.
  • Forgetting sudo. Without sudo, pacman will fail with a permission error. Make sure you're using sudo for all pacman commands.
  • Ignoring pacman warnings. If pacman warns about missing dependencies or conflicts, read the message carefully. It often tells you exactly what to do.
  • Assuming it's installed after a failed command. If the installation is interrupted (e.g., network drop), Firefox may be partially installed. Check with pacman -Q firefox to see if it's actually installed.

Tips

  • Use the official repository. The firefox package in the Arch repositories is maintained by the Arch Linux team and is the recommended way to install Firefox. Avoid using third-party scripts or binaries unless you have a specific reason.
  • Consider Firefox ESR if you need stability. If you prefer a version with longer support and fewer feature changes, install firefox-esr instead. It's also in the official repos.
  • Keep Firefox updated. Run sudo pacman -Syu regularly to get security updates and new features. Firefox updates frequently, and Arch pushes them quickly.
  • Customize your profile. Firefox stores your profile in ~/.mozilla/firefox/. You can back it up or copy it to another machine if needed.
  • Use the terminal for troubleshooting. If Firefox crashes on launch, running firefox from the terminal will show error messages that can help diagnose the issue.

Troubleshooting

If Firefox doesn't launch:

  • Check if it's installed: pacman -Q firefox. If not, reinstall with sudo pacman -S firefox.
  • Run firefox from the terminal and read the error output. Common issues include missing libraries or a corrupted profile.
  • If you see a missing library error, you may need to install additional packages. For example, some graphics drivers require mesa or libx11. Usually pacman handles these automatically, but if not, install them manually.

If pacman reports "failed to synchronize all databases":

  • This is usually a network issue. Check your internet connection and try again.
  • If it persists, you may need to update your mirror list. Edit /etc/pacman.d/mirrorlist and uncomment a few mirrors closer to you, then run sudo pacman -Syyu.

If you get a "target not found" error:

  • This means the package name is wrong or the repository isn't configured. Make sure you typed firefox correctly and that your pacman.conf includes the [core] repository.

If Firefox is slow or crashes frequently:

  • Try creating a new profile: firefox -P and create a fresh profile. This can rule out profile corruption.
  • Check if you have enough free disk space and memory. Firefox needs a few hundred MB of free space for cache and profiles.

Frequently Asked Questions

Is Firefox available in the official Arch repositories?

Yes, Firefox is in the core repository, which is enabled by default. You can install it directly with pacman.

Can I install Firefox without sudo?

No, pacman requires root privileges to install packages system-wide. You must use sudo or log in as root.

What's the difference between Firefox and Firefox ESR?

Firefox ESR (Extended Support Release) is an older version that receives security updates but not new features. It's more stable for enterprises or users who prefer a consistent experience. You can install it with sudo pacman -S firefox-esr.

How do I uninstall Firefox?

Run sudo pacman -R firefox to remove the package. To also remove configuration files, use sudo pacman -Rns firefox (the n removes dependencies, s removes config files).

Why is Firefox not starting after an update?

This can happen if the update was interrupted or if there's a conflict with a new library. Try reinstalling Firefox with sudo pacman -S firefox. If that doesn't work, check the terminal output for specific errors.

Can I install Firefox from the AUR instead?

Yes, but it's not recommended unless you need a specific version (like nightly). The official repo package is maintained and tested. If you must use the AUR, search for firefox-nightly or firefox-developer-edition.