> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iru.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Homebrew Using a Custom Script

> Install Homebrew on managed Mac computers using a custom script in Iru Endpoint. Automate the package manager deployment for developer tools and utilities.

<Callout icon="apple" color="#B84A7A" iconType="regular">This guide applies to Mac computers</Callout>

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

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

### 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 Iru Endpoint support GitHub repository ([GitHub Link](https://github.com/kandji-inc/support/blob/main/Scripts/InstallHomebrew.zsh))

### Add a Custom Script

To add this Library Item to your Iru Endpoint Library, follow the steps outlined in the [Library Overview](/en/endpoint/library/library-items-profiles/library-overview) article.

### Configure the Custom Script

<Steps>
  <Step title="Name the Custom Script">
    Give your Custom Script a descriptive name.
  </Step>

  <Step title="Assign to Blueprints or Assignment Maps">
    Follow the instructions in our [Getting Started with Assignment Maps](/en/endpoint/getting-started/blueprints-and-library/configuring-blueprints) support article to assign the Custom Script to your desired Assignment Map.

    <Frame>
      <img src="https://mintcdn.com/iru/OVGwzrvB1dITOQ_N/assets/media/images/f6vlugknnyjkosjgflcni4zvanlxvklkna.png?fit=max&auto=format&n=OVGwzrvB1dITOQ_N&q=85&s=aa92769f4c26b364a831c20d83a93b2c" alt="Custom Script Library Item Blueprint or Assignment Map assignment for Homebrew" width="2733" height="1640" data-path="assets/media/images/f6vlugknnyjkosjgflcni4zvanlxvklkna.png" />
    </Frame>
  </Step>

  <Step title="Set Execution Frequency">
    Select an **Execution Frequency**.
  </Step>

  <Step title="Configure Self Service">
    Optionally, make the script available in **Self Service**.
  </Step>

  <Step title="Add the Script">
    Paste the script from the prerequisites into the **Audit Script** field.
  </Step>

  <Step title="Save Configuration">
    Click **Save** in the lower right-hand corner to complete the Custom Script setup.

    <Frame>
      <img src="https://mintcdn.com/iru/TjTgZOrl7Pjp2y4D/assets/media/images/zhwvgs7b9zllcv3xqnudzpzeuajri3_kcq.png?fit=max&auto=format&n=TjTgZOrl7Pjp2y4D&q=85&s=531724605a7115875676b0ebc875c863" alt="Custom Script Save button to complete Homebrew setup" width="2603" height="2344" data-path="assets/media/images/zhwvgs7b9zllcv3xqnudzpzeuajri3_kcq.png" />
    </Frame>
  </Step>
</Steps>
