LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   path to installation (https://www.linuxquestions.org/questions/linux-software-2/path-to-installation-748385/)

rajesh84210 08-18-2009 05:32 AM

path to installation
 
Dear Linux Experts,
I installed an opensource server in my FC.As per the doc i had , i installed it in the location /usr/local/src and everything is working absolutely fine.All I would like to now is , should`nt i install it in any other location?.. wont my kamailio server work if i install it in anyother location.. shold every software that is installed in linux be installed in the same location i.e. /usr/local/src

Thanks

windtalker10 08-18-2009 11:21 AM

Quote:

shold every software that is installed in linux be installed in the same location i.e. /usr/local/src
No.
There are a multitude of reasons why but I'll try to list a few simple reasons.
Files that are a part of your core system are placed in locations that are pretty much a standard across all distro's and vary only slightly.
These are locations that a user normally has no need to access which gives a lessor chance of "accidents" happening.
Files installed to /usr/local are in a "prison" so to speak.
The core system does not access them and vice versa unless specifically instructed to do so making an installation there safer for the core system;
barring malicious code of course but then again, you the installer have not done your own job of helping to keep yourself safe if this happens.
Installs to /usr/local aren't normally updated or upgraded either unless specifically instructed to do so.
/usr/local is a "prison' that you are able to access and utilize the "prisoners" at your discretion with hopefully very little fear of retribution.
/usr/local is also a standard across all distro's for installing add-ons outside a users repository, therefore, source developed by those without malicious intent will normally direct the code to install there unless otherwise specified by the person doing the installing.

That's about as simple as I know how to make the answer and still have it understandable.

rajesh84210 08-18-2009 11:27 PM

Dear WindTalker,
Thanks for ur post.It was certainly pretty useful.
Thanks:-)


All times are GMT -5. The time now is 10:26 PM.