Skip to main content

How can I get the list of apps installed with Brew? I could not pull this list with Jamf Pro via script. Because the brew list command should work in the corresponding profile. However, I guess Jamf Pro doesn't run it in the relevant profile. Is there a practical method? I used the following commands;

brew list --cask
brew list

@husnudagidir If you need to run a command as the logged in user instead of as the root context when running via a Jamf Pro policy see the following article which defines a runAsUser function to make that simple: https://scriptingosx.com/2020/08/running-a-command-as-another-user/


@husnudagidir If you need to run a command as the logged in user instead of as the root context when running via a Jamf Pro policy see the following article which defines a runAsUser function to make that simple: https://scriptingosx.com/2020/08/running-a-command-as-another-user/


thank you


@husnudagidir If you need to run a command as the logged in user instead of as the root context when running via a Jamf Pro policy see the following article which defines a runAsUser function to make that simple: https://scriptingosx.com/2020/08/running-a-command-as-another-user/


Thank you, I appreciate you for the link.


Reply