Hi,
I am a little bit puzzle and wonder how to make the `pkg` module works under OSX.
The command, `salt \MyMac pkg.latest_version neofetch` returns the error
```
ERROR: Unable to run command '['brew', '--prefix']' with the context '{'cwd': '/var/root', 'shell': False, 'env': {'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PWD': '/', 'XPC_FLAGS': '0x0', 'XPC_SERVICE_NAME': 'com.saltstack.salt.minion', 'SHLVL': '0', 'LC_CTYPE': 'C', 'LC_NUMERIC': 'C', 'LC_TIME': 'C', 'LC_COLLATE': 'C', 'LC_MONETARY': 'C', 'LC_MESSAGES': 'C', 'LC_PAPER': 'C', 'LC_NAME': 'C', 'LC_ADDRESS': 'C', 'LC_TELEPHONE': 'C', 'LC_MEASUREMENT': 'C', 'LC_IDENTIFICATION': 'C', 'LANGUAGE': 'C'}, 'stdin': None, 'stdout': -1, 'stderr': -2, 'with_communicate': True, 'timeout': None, 'bg': False, 'close_fds': True}', reason: [Errno 2] No such file or directory: 'brew': 'brew'
ERROR: Minions returned with non-zero exit code
```
Brew is installed and working as expected on `MyMac`.
My observations are
- The minion is trying to run `brew` as root .. brew will not allow to run as root, why bother?
- Why is /usr/local/bin not in the env PATH … `MyMac:/etc/paths` does have `/usr/local/bin` and `root> echo $PATH` does display it.
In short, I will like to know how do OSX admins use the `pkg` module ?
Thank you,
A beginner
alain