A better approach is to use packaged applications (.rpm, .deb), which will take care of it for you.
Otherwise, manual installs typically go somewhere of your choosing in /usr or /usr/local. It doesn’t make a lot of difference where you put it, because it will work from almost anywhere.
|