Skip to content

Instantly share code, notes, and snippets.

@hendrauzia
Last active April 24, 2019 07:29
Show Gist options
  • Save hendrauzia/d0e4d9e48631929bb6f273f9869e0c73 to your computer and use it in GitHub Desktop.
Save hendrauzia/d0e4d9e48631929bb6f273f9869e0c73 to your computer and use it in GitHub Desktop.
How To Install Previous Firefox Version in Ubuntu
# Set version to be installed.
FIREFOX_VERSION=10.0.2
# Download previous firefox version, check here for complete list: https://ftp.mozilla.org/pub/firefox/releases/
wget https://ftp.mozilla.org/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2
# Extract the archive verbosely.
tar -xvjf firefox-$FIREFOX_VERSION.tar.bz2
# Move the package to /opt folder.
sudo mv firefox /opt/firefox-$FIREFOX_VERSION
# Backup existing firefox if any.
sudo mv /usr/bin/firefox /usr/bin/firefox-backup
# Create symbolic link.
sudo ln -s /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox
# Create preference locking to prevent auto update.
printf "//\nlockPref(\"app.update.enabled\", false);" > /opt/firefox-$FIREFOX_VERSION/mozilla.cfg
# Load the preference lock.
printf "pref(\"general.config.obscure_value\", 0);\npref(\"general.config.filename\", \"mozilla.cfg\");" > /opt/firefox-$FIREFOX_VERSION/defaults/pref/local-settings.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment