Homebrew — The Missing Package Manager for macOS and Linux
Homebrew is the missing package manager for macOS (and Linux). Installs CLI tools, libraries, and GUI apps (casks) that Apple or your Linux distro did not include. The de facto way developers set up their Mac development environment.
What it is
Homebrew is the de facto package manager for macOS (and Linux). It installs CLI tools, libraries, and GUI applications (called casks) that Apple or your Linux distribution did not include. It is the first tool most developers install on a new Mac.
Homebrew targets developers, sysadmins, and power users who need to install and manage software beyond what the App Store or system package managers provide.
The project is actively maintained and suitable for both individual developers and teams looking to integrate it into their existing toolchain. Documentation and community support are available for onboarding.
How it saves time or tokens
Homebrew reduces software installation to a single command. Instead of downloading DMGs, dragging to Applications, and configuring PATH variables, you run brew install and the tool is ready. Homebrew also handles updates (brew upgrade), cleanup (brew cleanup), and dependency management automatically.
For teams evaluating multiple tools in the same category, the clear documentation and active community reduce the time spent on research and troubleshooting. Getting started takes minutes rather than hours of configuration.
How to use
- Install Homebrew by pasting the install command from brew.sh into your terminal.
- Use
brew install <package>for CLI tools andbrew install --cask <app>for GUI applications. - Keep everything updated with
brew update && brew upgrade. - Search for packages with
brew search <query>or browse formulae.brew.sh.
Example
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install common developer tools
brew install git node python3 go rust
brew install jq fzf ripgrep fd bat delta
# Install GUI apps via casks
brew install --cask visual-studio-code iterm2 docker firefox
# Update everything
brew update && brew upgrade && brew cleanup
# List installed packages
brew list --formula
brew list --cask
Related on TokRepo
- AI Tools for Coding — Developer tools that install via Homebrew.
- Featured Workflows — Browse curated developer setup and productivity workflows.
Common pitfalls
- Running
brew updateinfrequently. Homebrew's package index goes stale quickly. Runbrew updatebefore installing new packages to get the latest versions. - Using
sudo brewon macOS. Homebrew is designed to run without root privileges. Using sudo can break permissions and cause hard-to-debug issues. - Not cleaning up old versions.
brew cleanupremoves outdated downloads and old formula versions. Without periodic cleanup, your Homebrew cache can consume gigabytes of disk space. - Not reading the changelog before upgrading. Breaking changes between versions can cause unexpected failures in production. Pin your version and review release notes.
Frequently Asked Questions
Yes. Homebrew on Linux (formerly Linuxbrew) installs software in your home directory without requiring root access. It uses the same commands and formulae as the macOS version.
Formulae install CLI tools and libraries (e.g., git, node, python). Casks install GUI applications (e.g., VS Code, Firefox, Docker Desktop). Use `brew install` for formulae and `brew install --cask` for casks.
Homebrew installs the latest version by default. For specific versions, you can tap homebrew/cask-versions for apps or use brew extract to pin a specific formula version in a custom tap.
Run the uninstall script from the Homebrew GitHub repository. This removes Homebrew, all installed formulae, and casks. Back up your brew list first if you want to reinstall later.
Homebrew formulae are community-reviewed and hosted on GitHub. All formulae go through a PR review process. Casks download software from official developer sites. However, always verify that you are installing legitimate packages.
Citations (3)
- Homebrew Official Site— The missing package manager for macOS
- Homebrew GitHub— Community-maintained package formulae
- Homebrew Cask— Cask for GUI application management
Related on TokRepo
Discussion
Related Assets
HumHub — Open-Source Enterprise Social Network
A flexible, open-source social networking platform built on Yii2 for creating private communities, intranets, and collaboration spaces within organizations.
Dolibarr — Open-Source ERP & CRM for Business Management
A modular open-source ERP and CRM application written in PHP for managing contacts, invoices, orders, inventory, accounting, and more from a single web interface.
PrestaShop — Open-Source PHP E-Commerce Platform
A widely adopted open-source e-commerce platform written in PHP with a rich module marketplace, multi-language support, and a strong European user base.