Search code examples
macosapr

a command to check if apr is already installed in my mac os x


Is there a command to check if apr is already installed in my mac os x? Please if anyone knows how to do it explain it for me. I started to work with command line very recently and I need to learn a lot.


Solution

  • To find a program in Mac OS X (same for most Linux distribution), in Terminal, use:

    which apr
    

    if found, it will display something like /usr/sbin/apr

    If not found, it will output nothing.

    Note: in Mac OS X, you can use Spotlight to search. Much easier.