Using Homebrew on macOS
· siimplelab
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
| Command | Description |
|---|---|
brew search | Search packages |
brew install | Install package |
brew uninstall | Remove package |
brew list | List installed packages |
brew update | Update Homebrew |
brew upgrade | Upgrade packages |
brew cleanup | Clean up cache |
brew doctor | Diagnose issues |
Homebrew makes managing your macOS development environment easy.