# Homebrew

> A free tool that puts apps on a Mac or on Linux with one short command.

**Field:** Software Development  
**Category:** Editors & Tools  
**Also known as:** brew, brew install, Homebrew for Mac

## Think of it like

It is like a vending machine for apps. You press a name, and the app drops out.

## Definition

Homebrew is a free package manager for macOS and Linux. It installs apps and tools with one short command, brew install. It knows where to get each one, what it needs, and how to set it up. It can also update them all at once later. Developers use it to set up a new Mac with the tools they need, like Git or Python.

## Example

Lucy gets a new Mac at work. She types one brew install line, and Git, Node.js and wget are all set up.

## Example code

```console
$ brew install wget
$ brew upgrade
```

The first line installs one tool. The second brings every tool up to date.

## Why it matters

It turns hours of downloads and setup into one line. And brew upgrade keeps every tool current.

## Common mistake

Using sudo with brew. It is made to run as your own user, and sudo can mess up its folders.

## Three principles

- **One command.** brew install puts a tool in place.
- **Knows the needs.** It fetches what each tool needs too.
- **Update all.** brew upgrade brings every tool current.

## Related terms

- [Package Manager](https://learn.benibix.com/term/development/package-manager)
- [macOS](https://learn.benibix.com/term/development/macos)
- [Linux](https://learn.benibix.com/term/development/linux)
- [Terminal](https://learn.benibix.com/term/infrastructure/terminal)

## Taught in

- [Yarn, pnpm, Cargo and Homebrew](https://learn.benibix.com/learn/development-tools/yarn-pnpm-cargo-and-homebrew): Coding Tools, 9/13

![A table of four rows. JavaScript: npm, Yarn and pnpm, all fetching from the npm registry. Python: pip and uv, fetching from PyPI. Rust: Cargo, fetching from crates.io. Apps on Mac and Linux: Homebrew, fetching from its own list, called formulae. Each row runs from the language on the left, through its tools, to its registry on the right.](https://learn.benibix.com/diagrams/dev5-package-managers.svg)

---

Source: https://learn.benibix.com/term/development/homebrew
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
