Documentation
Homebrew

Homebrew Installation Guide

Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system.

👾
Tested on macOS Sonoma 14.0

Installation Steps

1. Open Terminal

For more information please see:

How to open terminal in macOS

2. Install Homebrew:

Once you have the Terminal open, you'll need to install Homebrew. This is a package manager for macOS that makes it easy to install software. Copy and paste the following command into the Terminal and press Enter:

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

During the installation process, you might be asked to provide your user password. Type your password and press Enter (note: you won't see the characters as you type).

Homebrew require password

3. Verify Installation

Once the installation is complete, you can verify that Homebrew is correctly installed. In the Terminal, type the following command and press Enter:

sh
 brew --version

This will display the Homebrew version number if the installation was successful.

console
$ brew --version
> Homebrew 4.1.18

This command will display the Homebrew version number if the installation was successful.

Conclusion

Now that Homebrew is installed on your macOS, you can easily manage software installations using simple commands like:

  • To install a package: brew install <package_name>
  • To install an application: brew install --cask <application_name>

For instance, to install the popular text editor VSCode, you'd run:

sh
brew install --cask visual-studio-code

Additional Resources

SourceDescription
Homebrew (opens in a new tab)Homebrew website
Homebrew Documentation (opens in a new tab)Homebrew documentation