Determine if installed.
Posted: Thu Jun 14, 2007 12:24 pm
I tried figuring out a way a while back to determine if Apache was installed, where it was installed and if it was running.
Sometimes the daemons appear to run as httpd and others as apache so relying on *just*
Or whatever the command is...just doesn't cut the mustard. Although I do believe that most Linux apps include their install directory as part of the command line options, at least (from what I remember) Apache does. So long as you can find Apache you can auto-locate it's path. Using PHP anyways.
Now, similar question. How can I do this for Subversion but using only native commands, no PHP!!!
Is there anyway to deduce where a application is installed (particularly the one just mentioned) on a system?
Obviously grepping for svn or whatever might not always work as you could easily be returned more than one installed or available copies, right?
Anyone ever reseach into something like this? How do you go about's guestimating a proggie's location...
Sometimes the daemons appear to run as httpd and others as apache so relying on *just*
Code: Select all
ps -aux | grep httpdNow, similar question. How can I do this for Subversion but using only native commands, no PHP!!!
Is there anyway to deduce where a application is installed (particularly the one just mentioned) on a system?
Obviously grepping for svn or whatever might not always work as you could easily be returned more than one installed or available copies, right?
Anyone ever reseach into something like this? How do you go about's guestimating a proggie's location...