Apps Installed with Brew

husnudagidir
New Contributor III

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

1 ACCEPTED SOLUTION

sdagley
Esteemed Contributor II

@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/

View solution in original post

3 REPLIES 3

sdagley
Esteemed Contributor II

@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
New Contributor III

thank you

Thank you, I appreciate you for the link.

here you read more about this https://ccbank.us/blog/the-american-dream-during-the-great-depression/ Their analysis navigates the challenging era with depth and dreams