Mozilla offers portable tarball packages for Linux 64-bit and 32-bit. Firstly, you may download it from the link below:
Download Firefox (Linux Tarball)
After downloaded the package, open terminal from start menu and run the command below will extract it into /opt directory:
sudo rm /opt/firefox
sudo tar -jxf ~/Downloads/firefox-*.tar.bz2 -C /opt/
The “rm” command will clear old Firefox tarball (if any) from /opt if you’ve done that before.
Finally, create an app shortcut by running command in terminal:
nano ~/.local/share/applications/firefox.desktop
Then copy the lines below and save it (press Ctrl+X, type y and hit Enter).
[Desktop Entry]
Name=Firefox Stable
Comment=Web Browser
Exec=/opt/firefox/firefox %u
Terminal=false
Type=Application
Icon=/opt/firefox/browser/chrome/icons/default/default128.png
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;
StartupNotify=true
Actions=Private;
[Desktop Action Private]
Exec=/opt/firefox/firefox –private-window %u
Name=Open in private mode
After that, you can search “Firefox Stable” to open the web browser from start menu.
To uninstall it, simply remove both app shortcut file and source folder.
sudo rm /opt/firefox
rm ~/.local/share/applications/firefox.desktop