Skip to main content
Solved

Apps Installed with Brew


husnudagidir
Forum|alt.badge.img+5

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

Best answer by sdagley

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

3 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • Answer
  • August 10, 2023

@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
Forum|alt.badge.img+5

@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


Forum|alt.badge.img

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