User Agents

Web browsers and everyday web tech, explained

How to Install a Browser on Arch Linux

· 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

Installing a browser on Arch Linux is a straightforward process once you understand its package management system. Arch uses pacman, a powerful command-line tool, to install, update, and remove software. Most major browsers are available in the official repositories, so installation is typically just one command. Before proceeding, ensure your system is up to date and that you have basic terminal proficiency, as all steps are terminal-based. This guide covers installing common browsers like Firefox, Chromium, and Google Chrome, and explains what to do if issues arise.

What You'll Need

  • An Arch Linux system with internet access
  • Terminal access with sudo or root privileges
  • Basic knowledge of command-line navigation
  • Optional: AUR helper (like paru or yay) if installing from the AUR

Step-by-Step

  1. Update your system
    Open a terminal and run:
    sudo pacman -Syu
    This ensures your package database and system are current, reducing the risk of conflicts during installation.
  2. Choose your browser
    Decide which browser you want to install. Firefox is available in the official repos. Chromium is also in the official repos. Google Chrome is not in the official repos but is available via the AUR.
  3. Install Firefox
    Run:
    sudo pacman -S firefox
    Wait for the installation to complete. Firefox will be ready to launch from your application menu or by typing firefox in the terminal.
  4. Install Chromium
    Run:
    sudo pacman -S chromium
    Chromium is the open-source base for Chrome and is fully supported on Arch. After installation, launch it with chromium.
  5. Install Google Chrome (via AUR)
    Since Google Chrome is not in the official repositories, you must use the Arch User Repository (AUR). First, ensure you have base development tools:
    sudo pacman -S base-devel
    Then, either install manually or use an AUR helper. If using paru:
    paru -S google-chrome
    If installing manually, go to the AUR page for google-chrome, download the PKGBUILD tarball, extract it, and run:
    makepkg -si
    This builds and installs the package.
  6. Verify installation
    After installation, test the browser by launching it from the terminal. For example:
    firefox, chromium, or google-chrome
    If it opens without errors, the installation was successful.
  7. Add to desktop environment (optional)
    If using a desktop environment like GNOME, KDE, or XFCE, the browser should appear in your application launcher. If not, log out and back in, or restart the session.
  8. Set as default browser (optional)
    In your desktop settings, go to Applications or Default Applications and set your new browser as the default for HTTP and HTTPS links.

Common Mistakes

  • Skipping system update: Running pacman -Syu before installing new software prevents dependency issues and ensures compatibility.
  • Using incorrect package names: Typing chrome instead of google-chrome or chromium will fail. Always verify the correct package name in the official repos or AUR.
  • Ignoring AUR risks: Installing from the AUR bypasses official package signing. Always inspect PKGBUILD files for suspicious commands before building.
  • Forgetting base-devel: Building AUR packages requires base-devel. Without it, makepkg will fail with missing tools like make or gcc.
  • Running GUI apps as root: Never launch browsers with sudo. This creates security risks and can corrupt user profiles.

Tips

  • Use an AUR helper like paru or yay to simplify AUR installations. These tools automate downloading, building, and installing AUR packages.
  • Keep your system updated regularly with sudo pacman -Syu to receive browser security patches.
  • Firefox and Chromium receive frequent updates through pacman. Google Chrome updates when you reinstall via AUR unless your helper automates it.
  • If you prefer minimalism, consider lightweight browsers like qutebrowser or lynx, available in the repos or AUR.
  • Use pacman -Ss browser to search for available browser packages and their exact names.

Troubleshooting

If the browser fails to install, first check your internet connection and mirror status. Run sudo pacman -Sy to refresh the package database. If you get a "package not found" error, verify the spelling and repository. For AUR packages, ensure base-devel is installed. If makepkg fails, check the output for missing dependencies and install them manually.

If the browser installs but won't launch, run it from the terminal to see error messages. Common issues include missing libraries (install with pacman -S) or GPU-related crashes (try launching with --disable-gpu). For Google Chrome, if you see "failed to load system libraries", reinstall with paru -S google-chrome --noconfirm or rebuild manually.

If the browser opens but lacks functionality (e.g., no video playback), install additional codecs or plugins. For Firefox, this is rare. For Chromium or Chrome, ensure ffmpeg is installed: sudo pacman -S ffmpeg.

If the browser doesn't appear in your application menu, log out and back in, or run update-desktop-database to refresh launcher entries.

Frequently Asked Questions

Can I install Firefox on Arch Linux?

Yes, Firefox is in the official repositories. Install it with sudo pacman -S firefox.

Is Google Chrome available in the official Arch repos?

No, Google Chrome is not in the official repos. It must be installed from the AUR using tools like paru or yay.

Do I need an AUR helper to install browsers?

No, but it helps. You can manually build AUR packages with makepkg, but helpers automate the process.

Why does Chromium fail to start after install?

This may be due to missing dependencies or GPU issues. Run chromium in the terminal to see errors. Try chromium --disable-gpu as a test.

Can I install multiple browsers on Arch?

Yes, you can install Firefox, Chromium, and Google Chrome simultaneously without conflict. Each runs independently.

How do I uninstall a browser?

Use sudo pacman -R browser-name. For AUR packages, use the same command. Replace browser-name with firefox, chromium, or google-chrome.