homebrew
1
总安装量
1
周安装量
#54044
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill homebrew
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
zencoder
1
Skill 文档
Homebrew
Homebrew is the standard package manager for macOS. v4.2 (2025) is faster (JSON API) and supports declarative Brewfile.
When to Use
- macOS Dev Setup: Installing Node, Python, Git, Docker, Postgres.
- Casks: Installing GUI apps (VS Code, Slack, Chrome).
- Dotfiles: Automating machine setup.
Quick Start
# Install wget
brew install wget
# Install VS Code (Cask)
brew install --cask visual-studio-code
Core Concepts
Formulae
CLI tools compiled from source (or bottles).
Casks
macOS native applications (drag-and-drop apps automation).
Brewfile
Dependency list. brew bundle installs everything listed.
Best Practices (2025)
Do:
- Use Brewfile: Commit a
Brewfileto your dotfiles repo.brew bundle dumpgenerates it. - Cleanup:
brew cleanupfrees up GBs of old versions. - Pin versions: If you need stability, use
brew pin postgresql@14.
Don’t:
- Don’t run as sudo: Homebrew manages permissions.