Deploying Homebrew Using a Custom Script

By David Marks

How to deploy the Homebrew using Custom Script on your macOS devices

What is Homebrew?

Homebrew is a free and open-source package management system for macOS that simplifies software installation. It has become a popular tool among developers and system administrators for its ease of use and extensive package availability.

As with all scripts, please test thoroughly before deploying to Mac computers in production.

How Homebrew Works

Homebrew integrates into the command-line interface (CLI) and allows local administrators to install required software via the CLI. This tool is particularly useful for developers and system admins who need to install libraries and tools efficiently.

Prerequisites

  • Copy the InstallHomebrew.zsh script from the Kandji support GitHub repository (GitHub Link)

Add a Custom Script

  1. In the left-hand navigation bar, click Library.
  2. In the upper right-hand corner, click Add New.
  3. Click Custom Script.
  4. Click Add & Configure.

Configure the Custom Script

  1. Give your Custom Script a Name.
  2. If using Assignment Maps, follow the instructions in our Getting Started with Assignment Maps support article to assign the Custom Script to your desired Assignment Map.
  3. If using Classic Blueprints, assign your Custom Script to your desired Blueprint. 
  4. Optionally, configure Assignment Rules for your Classic Blueprint.
  5. Select an Execution Frequency.
  6. Optionally, make the script available in Self Service.
  7. Paste the script from the prerequisites into the Audit Script field.
  8. Click Save in the lower right-hand corner.