Is it good practice to out MySQL or Apache in /opt/ folder?
So at my company they want to put all the application software in The /opt/application folder. This strikes me as odd because they consider server daemon like Apache and MySQL as application sofrwarw...but they already usually have a place like /use/bin . They're logic is that it will make patching the system easier. I don't see how.. can someone clarify as to any pros and cons
The /usr
directory is mostly treated as being fully owned by the package management systems in most Linux distributions. If you try and place your own binaries in those locations, there is a good chance something might get broken. Safe places to store your own things usually include /usr/local
, /opt
, and /srv
on most distros. Putting things you locally build and manage under /opt
is perfectly fine, and not unusual.