a blog about about various things that interest me. We praise the word random

Homebrew is the de facto package manager for macOS. It allows you to install, update, and manage software directly from the Terminal—making it an essential tool for any modern Mac setup.


1. Install Homebrew

Open Terminal and run:

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

The installer will:

  • Download and install Homebrew
  • Set up required directories
  • Prompt you to install Apple’s Command Line Tools (if not already installed)

2. Verify the Installation

Check that everything works:

brew --version

You should see the installed version printed in the Terminal.


3. Update and Doctor

Run these to ensure everything is healthy:

brew update
brew doctor
  • brew update fetches the latest package definitions
  • brew doctor checks for potential issues

4. Install Your First App

Homebrew can install both CLI tools and GUI apps.

CLI tool example:

brew install git

GUI app example:

brew install --cask onlyoffice

5. Keep Everything Up to Date

To upgrade all installed packages and apps:

brew upgrade

To clean up outdated files:

brew cleanup

Why Use Homebrew?

  • Install apps in seconds from the command line
  • Keep everything updated with a single command
  • Easily replicate your setup on a new machine
  • Access thousands of open-source tools

Homebrew quickly becomes the backbone of a clean, efficient macOS setup—especially when combined with automation or setup scripts.

Leave a comment