Installing a particular version of FireFox on Linux
-
Does an existing version of firefox exist?
firefox --version
If not, skip to (3).
-
Install dependency
sudo apt-get install libgtk2.0-0
-
Download firefox version: FireFox's release archive can be found at https://ftp.mozilla.org/pub/firefox/releases/. You will need to use the appropriate version (typically
linux-x86_64
, but you can runarch
oruname -m
to check if your machine is 64 or 32 bit).wget https://ftp.mozilla.org/pub/firefox/releases/45.0.2/linux-x86_64/en-GB/firefox-45.0.2.tar.bz2 # Saving to: ‘firefox-45.0.2.tar.bz2’
-
Extract the binary
tar xvf firefox-45.0.2.tar.bz2
-
Backup existing firefox directory
If you have a firefox already installed, back-up the existing version:
sudo mv /usr/bin/firefox /usr/bin/firefox-backup
and remove the symbolic link
rm /usr/bin/firefox
-
Move the extracted firefox directory
sudo mv firefox/ /usr/lib/firefox
-
Create a symbolic link to the firefox binary
sudo ln -s /usr/lib/firefox /usr/bin/firefox
On the last step (7. Create a symbolic link to the firefox binary),
I think that the command should be "sudo ln -s /usr/lib/firefox/firefox /usr/bin/firefox".
Also, "rm /usr/bin/firefox" could begin with "sudo" so that copy/pasting it as is always works.