Brew Commands - Package Management for macOS

Master Brew commands for efficient package management on macOS. Learn to update, upgrade, install, uninstall, and manage formulae and casks with this comprehensive guide.

Brew Commands Guide

This page provides a quick reference for essential Homebrew commands, a popular package manager for macOS. Homebrew simplifies the installation and management of software on your system.

Brew Update and Upgrade

Keeping your packages and Homebrew itself up-to-date is crucial for security and stability. Use these commands to manage updates.

---
syntax: bash
tags: [ mac, deps ]
---
# Update Homebrew and formulae list
brew update

# Upgrade all installed formulae and casks
brew upgrade

# Upgrade a specific formula
brew upgrade <formula>

Brew Install and Uninstall

Learn how to install new software and remove packages you no longer need using Brew.

# Install a formula (command-line tool)
brew install <formula>

# Install a cask (GUI application)
brew install --cask <formula>

# Uninstall a formula or cask
brew uninstall <formula>

Brew List and Maintenance

Manage your installed packages and ensure your Homebrew installation is healthy.

# List all installed formulae
brew list

# Check for potential issues with your Homebrew installation
brew doctor

# Clean up old versions of installed formulae and casks
brew cleanup

External Resources

For more in-depth information and advanced usage, refer to the official Homebrew documentation and related resources.