I use firefox from mozilla.org, not from APT which is old. However, if I place it at /opt, it cannot update itself, because /opt is owned by root.
If I simply place it at /home, then it can update itself but any executable can modify it, which is unsecure.
What would be the ideal way of doing this, without using package managers? (even ones with modern firefox)
Follow these steps so that firefox can update itself :
Open Terminal then,
1) Move or copy the firefox tar file in opt directory by this command :
sudo mv /home/username/Download/Firefox.tar.bz2 /opt/
2) Then extract the firefox tar file there with appropriate command . You can search "how to extract a particular type of file in linux".
3) After extracting a folder named firefox will be created in the "opt" folder. Then type this command to get access to the firefox folder :
This way you can directly update firefox without the need of downloading firefox.tar file from mozilla.org.
Or you can install firefox via same methods in
/usr/local/
directory if you do not want to install in /opt directory.If you have any doubt then ask.