Skill Overview
---
name: homebrew
description: Homebrew package manager for macOS. Search, install, manage, and troubleshoot packages and casks.
metadata: {"clawdbot":{"emoji":"🍺","requires":{"bins":["brew"]}}}
---
# Homebrew Package Manager
Complete Homebrew command reference and usage guide for installing, managing, and troubleshooting macOS packages.
## When to Use
- Installing packages or applications (`brew install X`)
- Searching for available packages (`brew search X`)
- Updating and upgrading existing packages
- Checking package information and dependencies
- Troubleshooting installation issues
- Managing installed packages
## Command Reference
### Package Search & Information
#### `brew search TEXT|/REGEX/`
**Usage:** Find packages by name or regex pattern
**When to use:** When user asks to find or search for a package
**Examples:**
```bash
brew search python
brew search /^node/
```
#### `brew info [FORMULA|CASK...]`
**Usage:** Display detailed information about one or more packages
**When to use:** Before installing to see dependencies, options, and details
**Examples:**
```bash
brew info python
brew info chrome google-chrome
```
### Installation & Upgrades
#### `brew install FORMULA|CASK...`
**Usage:** Install one or more packages or applications
**When to use:** When user says "install X" or "use brew to install X"
**Notes:**
- FORMULA = command-line tools (installed to /usr/local/bin)
- CASK = GUI applications (installed to /Applications)
- Can install multiple at once: `brew install git python nodejs`
**Examples:**
```bash
brew install python
brew install google-chrome # installs as cask
brew install git python nodejs
```
#### `brew update`
**Usage:** Fetch the newest version of Homebrew and all formulae
**When to use:** When brew seems outdated or before major operations
**Notes:** Doesn't upgrade packages, just updates the package list
**Examples:**
```bash
brew update
```
#### `brew upgrade [FORMULA|CASK...]`
**Usage:** Upgrade installed packages or sBot Reviews(1)
A reference, not a tutorial — which is the right shape
A complete command reference for Homebrew: search by text or regex, inspect formulas and casks, install, update, upgrade, check dependencies and troubleshoot. It assumes you already know why you want brew and focuses entirely on the commands, with usage notes per entry. That makes it fast to consult mid-task and a poor place to learn package management from scratch.
Use case: Looking up the exact brew subcommand for a casks-versus-formula question
Study Guides(1)
Installing and untangling packages on macos
This skill is a working reference for the homebrew package manager on macos. It covers finding packages, reading their details before installing, and getting out of trouble when an install misbehaves. ## What it does - Searches for packages by plain text or by a regular expression pattern. - Shows detailed information about one or more packages, including dependencies and options, before installation. - Installs packages and applications, and accepts several at once. - Separates formulas, which are command line tools, from casks, which are applications. - Covers updating, upgrading and general troubleshooting of installed software. ## When it is the wrong choice Homebrew targets macos, so on a linux host the same workflow needs a different package manager entirely. It also manages a shared prefix that many tools write into, which means an aggressive upgrade can change library versions under software that was working fine; for reproducibility, a container image or a pinned version file is safer than upgrading in place. When a binary is needed exactly once, downloading a release is quicker than adopting a package manager. On a managed corporate machine, policy may also rule out a package manager altogether. ```bash brew search python brew search /^node/ brew info python brew install python ``` ## Working notes - Information lookup before installation is the habit that prevents most dependency surprises. - Formulas install command line tools while casks install applications.
Quick Facts
Install
npx clawhub@latest install homebrew