Skip to main content
Solved

Apps Installed with Brew

  • August 9, 2023
  • 3 replies
  • 21 views

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/

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
  • Author
  • Contributor
  • 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/


thank you


Forum|alt.badge.img
  • New Contributor
  • August 17, 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/


Thank you, I appreciate you for the link.