Firefox
Note about preferences: normally, your preferences, bookmarks, extensions, etc should be understood automatically when you start the new Firefox. However, there's always the possibility that something might not work and you could lose them. Do a backup first.
Note about Zotero: Debian's Zotero package depends on the Firefox package. Which means that you can not uninstall Debian's Firefox if you have Zotero installed. A solution to this is not to install Zotero from Debian's repository: see Zotero section in the useful stuff page about how to do it.
Firefox-esr
Firefox-esr is included in the Debian repositories. It tends to be a realtively old version, but has the advantage of updating automatically with a system update.
apt install firefox-esr
From the official website
- Download tar archive from the official download page
tar xf {firefox archive} -C /opt/- Create a desktop file:
- Copy ./desktopfile.desktop to
/usr/local/share/applications/firefox-latest.desktop - Edit
/usr/local/share/applications/firefox-latest.desktopName=FirefoxComment=Firefox web browserGenericName=Web BrowserExec=/opt/firefox/firefox %u: the%uwill make it so that when you click a link outside Firefox (e.g. in a messaging application), the link will be correctly opened in the running Firefox instanceIcon=/opt/firefox/browser/chrome/icons/default/default128.pngCategories=Network;
- Copy ./desktopfile.desktop to
ln -s /opt/firefox/firefox /usr/local/bin/to be able to run it from the command line- Set it as the default web browser:
update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/local/bin/firefox 200update-alternatives --set x-www-browser /usr/local/bin//firefox