Install Latest Version of Firefox on CentOS 7

I decided to install the latest version of Firefox on my CentOS 7 VM. This is what I did.

Download the latest version of Firefox:

$ wget http://ftp.mozilla.org/pub/firefox/releases/60.0/linux-x86_64/en-US/firefox-60.0.2.tar.bz2

As root, remove the CentOS install of Firefox:

# yum remove firefox

Move the tarball to /usr/local/src:

# cd /usr/local/src
# mv /home/me/firefox-60.0.2.tar.bz2 .

Extract the files:

tar xvjf firefox-60.0.2.tar.bz2

Set link up:

ln -s /usr/local/src/firefox/firefox /usr/bin/firefox

As normal user, run it. Also, check to see if an update is available:

$ firefox &

If an update is available, download it. Then as root, mv the tarball to /usr/local/src and extract it as done above. If you want to save the old version as a backup just in case the new version fails to work, do this before doing the extraction:

# cd /usr/local/src
# cp -r firefox/ firefox_old/