Red Cup IT - Blog
  • 👋Welcome to Red Cup IT: Navigating the Modern Cybersecurity Landscape Together
  • ☄️Browser Security
    • Enhancing Security with the TalonWork Enterprise Browser and Okta for Sensitive Data Protection
      • How to Log into Office.com on Your Tesla and Check Azure Sign-In Logs for User Agent Version
    • Enhancing Web Security: The Case for Blocking JavaScript in the Omnibox
  • 👩‍💻IT & DevOps Security
    • Github
      • GitHub Cybersecurity Best Practices Checklist for Startups
      • Github Authentication with Passkeys
      • What is GitHub Domain Verification?
      • Essential GitHub Practices: Managing Member Privileges
    • Atlassian Jira
      • Understanding the New Atlassian Jira and Confluence External User Security Policy
    • Okta
      • Enhancing Authentication Security with Okta Identity Engine Factor Sequencing
  • 📨Domain Security
    • Importance of Secure SPF Records for Email Security
    • Strengthening Domain Registrar Security: Essential Strategies
    • Elevate Your Brand's Email Trust with BIMI and VMC: A Comprehensive Guide
    • The Critical Role of DNSSEC in Enhancing Business Domain Security
  • 🔐MSP Supply Chain Security
    • Leveraging Talon Browser's File Scanning Engine for Enhanced Security in MSP Environments
  • 🔎Real Time Threat Detection and Response
    • SentinelOne
      • SentinelOne and Okta Integration: Elevating Zero Trust Security in Okta
      • 🕵️‍♀️SentinelOne and Microsoft Entra ID Integration: Elevating Zero Trust Security in Azure AD
  • macOS Setup Guide for Software Engineers and Developers
    • Essential Tools and Software for macOS Developers
      • How to Install Homebrew on an Apple Silicon macOS Computer
      • Linking Visual Studio Code to GitHub on macOS: A Guide to Signed Commits
        • Choosing the Right GnuPG Key Type: A Guide to Secure Encryption
      • How to Enable Touch ID for sudo on macOS Sonoma (14.x) and Beyond
      • Enhance Your macOS Security with YubiKey as a PIV Card for Login and Terminal Access
Powered by GitBook
On this page
  • Preliminary Note for Managed Devices
  • macOS Homebrew Installation Prerequisites
  • Step 1: Installing Command Line Tools for Xcode
  • Step 2: (Optional) Rosetta 2 Installation
  • Step 3: Homebrew Installation
  • Step 4: Configuring the Homebrew Environment
  • Step 5: Installation Verification
  • In Closing

Was this helpful?

  1. macOS Setup Guide for Software Engineers and Developers
  2. Essential Tools and Software for macOS Developers

How to Install Homebrew on an Apple Silicon macOS Computer

PreviousEssential Tools and Software for macOS DevelopersNextLinking Visual Studio Code to GitHub on macOS: A Guide to Signed Commits

Last updated 1 year ago

Was this helpful?

Homebrew stands as a pivotal package manager for macOS, streamlining the process of software package management and dependency resolution. This guide meticulously outlines the steps to install Homebrew on an Apple Silicon macOS computer, focusing on pre-installation requirements including Xcode Command Line Tools.

Preliminary Note for Managed Devices

If your device is under Red Cup IT management, a streamlined approach for installing both Homebrew and Xcode is available through the Addigy MacManage app. This self-service installation package ensures compatibility and simplifies the installation process. For users looking to install Homebrew or Xcode manually, the subsequent steps provide a comprehensive guide.

macOS Homebrew Installation Prerequisites

Ensure your system is prepared by meeting the following criteria:

  • An Apple Silicon computer

  • macOS Monterey (12) or higher.

  • Bash as the shell for installation.

Step 1: Installing Command Line Tools for Xcode

The Xcode Command Line Tools (CLT) are indispensable, providing essential tools for macOS application development. These tools are a prerequisite for Homebrew, as they include libraries crucial for many Homebrew packages.

To install the Xcode CLT, execute the following in Terminal:

xcode-select --install

This command triggers a prompt for the installation. If direct installation via terminal is unsuccessful, manual download from the is an alternative.

For MDM Managed Users:

Xcode is also available via the Self Service portal provided by Red Cup IT's device management solution. This method is recommended for ease of installation and ensuring software compatibility.

Step 2: (Optional) Rosetta 2 Installation

Installing Rosetta 2 ensures backward compatibility for packages yet to be updated for Apple Silicon, offering a smoother overall experience.

/usr/sbin/softwareupdate --install-rosetta --agree-to-license

Step 3: Homebrew Installation

With the Xcode CLT set up, you're now ready to install Homebrew. Input the following command in Terminal:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

The installation script provides detailed instructions and will request your confirmation before proceeding.

Step 4: Configuring the Homebrew Environment

Integrate Homebrew into your system's PATH to facilitate seamless access to its commands:

For zsh (the default shell for newer macOS versions), append the following to your ~/.zshrc file:

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
eval "$(/opt/homebrew/bin/brew shellenv)"

Activate the changes by sourcing your profile:

source ~/.zshrc

Step 5: Installation Verification

Confirm the successful installation and readiness of Homebrew by running:

brew doctor

This command diagnoses your setup, ensuring Homebrew is primed for use.

In Closing

You have now equipped your Apple Silicon macOS computer with Homebrew, enhancing your software management capabilities. For devices managed by Red Cup IT, remember to utilize the Addigy MacManage app for an optimized installation experience of both Homebrew and Xcode.

Keep up-to-date with the Red Cup IT Blog for further insights, tips, and guides in the realm of technology.

Apple Developer website