Loading...
Skip to main content
Tools

Using Homebrew on macOS

· siimplelab
macOS Homebrew
Photo by Gabrielle Orcutt on Unsplash

Homebrew is a package manager for macOS. It lets you install and manage apps with simple terminal commands.

Install Homebrew

Open Terminal and run:

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

Verify the installation:

brew --version

Search for Apps

Search for available packages:

brew search chrome

Install Apps

Install CLI tools with brew install:

brew install git
brew install node
brew install wget

Install GUI apps with brew install --cask:

brew install --cask google-chrome
brew install --cask visual-studio-code
brew install --cask figma

List Installed Apps

brew list
brew list --cask

Update Apps

Update Homebrew and all packages:

brew update
brew upgrade

Update a specific app:

brew upgrade node

Uninstall Apps

brew uninstall wget
brew uninstall --cask figma

Cleanup

Remove old versions and cache:

brew cleanup

Common Commands

CommandDescription
brew searchSearch packages
brew installInstall package
brew uninstallRemove package
brew listList installed packages
brew updateUpdate Homebrew
brew upgradeUpgrade packages
brew cleanupClean up cache
brew doctorDiagnose issues

Homebrew makes managing your macOS development environment easy.