firefox-installer

Firefox Installer

Install any version of Firefox from Mozilla.org on Debian based distros.

firefox versions installed image

Also check out thunderbird-installer

Currently supported distros:

Supported architectures: x86_64 and aarch64.

Installation

curl -sSL https://tmiland.github.io/firefox-installer/firefox_installer.sh \
     -o firefox_installer.sh && \
     chmod +x firefox_installer.sh && \
     ./firefox_installer.sh -h

Prerequisites

The Firefox tarball needs the usual desktop libraries. They are expected to be present on a desktop system and are not installed by this script:

libasound2 libatk1.0-0 libc6 libcairo-gobject2 libcairo2 libdbus-1-3 libfontconfig1 libfreetype6 libgcc-s1 libgdk-pixbuf-2.0-0 libglib2.0-0 libgtk-3-0 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb-shm0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1

Features

Usage

Usage: firefox_installer.sh [options]

  --help                 |-h   display this help and exit
  --firefox              |-f   latest (161.0) [version]
  --esr                  |-e   esr (153.8.0esr) [version]
  --beta                 |-b   beta (162.0b4) [version]
  --nightly              |-n   nightly (163.0a1) [version]
  --devedition           |-d   devedition (162.0b4) [version]
  --release              |-rl  select a release to install (mozilla builds)*
  --repo                 |-r   install Mozilla APT repo (apt)
  --firefox-sync         |-fs  firefox-sync: install|update|logs|start|stop|uninstall
  --language             |-l   install language pack (apt)
  --apt                  |-a   select apt install mode
  --mozilla-builds       |-m   select mozilla builds install mode
  --backup-profile       |-bp  backup firefox profile
  --uninstall            |-u   uninstall firefox
  --check                      verify Mozilla metadata and download URLs
  --dry-run                    print actions without changing the system
  --version                    print script version and exit

  install from apt:            [-f|-e|-b|-n|-d] -a
  install from mozilla builds: [-f|-e|-b|-n|-d] -m
  uninstall:                   [-f|-e|-b|-n|-d], [-a|-m] -u
  * custom release for mozilla builds only: -rl [version]
  * FIREFOX_LANG=ask prompts for a language; default is en-US

Install

# latest release / ESR / beta / nightly / Developer Edition
./firefox_installer.sh -f -m
./firefox_installer.sh -e -m
./firefox_installer.sh -b -m
./firefox_installer.sh -n -m
./firefox_installer.sh -d -m

# a specific version (mozilla builds)
./firefox_installer.sh -e 140.4.0esr -m
./firefox_installer.sh -rl 128.0.3 -f -m

# pick from the version menu
./firefox_installer.sh -e -m -rl

# install a different language
FIREFOX_LANG=de ./firefox_installer.sh -f -m
FIREFOX_LANG=ask ./firefox_installer.sh -f -m

# from Mozilla's APT repository
./firefox_installer.sh -f -a

Install all channels from Mozilla builds:

for i in f e b n d; do
  ./firefox_installer.sh -"$i" -m
done

Update

Re-run the same install command. The existing /opt/<channel> is replaced and the launcher and desktop entry are refreshed; no uninstall is needed.

Verify upstream availability

./firefox_installer.sh --check

This fetches the five current versions and the custom-release metadata, then checks the download URL for every channel. It exits non-zero if Mozilla changes something this script depends on. CI runs it weekly.

Use --dry-run to see every command an install would run without changing the system.

How version data is obtained

Versions and download URLs come from Mozilla’s machine-readable metadata at https://product-details.mozilla.org/1.0/:

No HTML is scraped. Every download URL is checked with a HEAD request before the archive is fetched.

Disclaimer

Use at your own risk

License

MIT License Image

MIT License