I had to update my Firefox from ver 3 (i.e. the one that Ubuntu 10.04 ships with) and move it to Firefox 7.
So firefox gave a tar.gz file to extract the browser from. I ran sudo apt-get remove firefox
, and then extracted the contents of the tarball to /opt/
. But when i type the command firefox
in the terminal it responds by saying firefox not installed
. I am now using a launch shortcut to open firefox, but what i want to know is
How can I install the application so that I can open it from the terminal?
The programs to be executed are searched in the directories defined in the environment variable PATH. You can see what you have defined using:
Assuming you have the executable available in /opt/firefox/bin, then you can do:
To make permanent, you have to add that line it in your ~/.bashrc.
For a single user:
For all users: