Post

Homebrew Tap Explained: Add Third-Party Repos

Learn what brew tap does and why install guides require it before brew install for third-party packages.

Homebrew Tap Explained: Add Third-Party Repos

Install guides often start with brew tap but never explain why.

Prerequisites

What Is a Tap?

A tap is a third-party Git repository containing Homebrew formulas or casks. Tapping a repo registers it so Homebrew can find and install its packages.

TermMeaning
FormulaPackage definition for CLI tools
CaskPackage definition for GUI apps
TapThird-party repo of formulas/casks
CoreBuilt-in homebrew/core and homebrew/cask repos

Homebrew ships with homebrew/core and homebrew/cask by default. Tapping adds more repos to that search path.

Why Tap Before Install?

Homebrew searches built-in repos first, then tapped repos. Without the tap, brew install fails for packages not in the defaults.

1
2
brew install --cask quotio
> Error: No available formula or cask with the name "quotio".

Add the tap first, then install:

1
2
3
4
5
6
7
brew tap nguyenphutrong/tap
> ==> Tapping nguyenphutrong/tap
> Cloned into /opt/homebrew/Library/Taps/nguyenphutrong/homebrew-tap

brew install --cask quotio
> ==> Installing Cask quotio
> ==> Moving App 'Quotio.app' to '/Applications/Quotio.app'

When You Don’t Need It

Skip brew tap when the package is already in built-in repos:

  • homebrew/core: git, node, python, wget
  • homebrew/cask: firefox, visual-studio-code, iterm2

Check availability before tapping:

1
2
3
brew search iterm2
> ==> Casks
> iterm2

If brew search finds it, install directly without tapping.

Practical Example

Install Quotio (a menu bar quote app) from a third-party tap:

1
2
3
4
5
6
7
8
brew tap nguyenphutrong/tap
> ==> Tapping nguyenphutrong/tap
> Cloned into /opt/homebrew/Library/Taps/nguyenphutrong/homebrew-tap

brew install --cask quotio
> ==> Downloading https://github.com/nicktranq/quotio/releases/download/v1.0.0/Quotio.dmg
> ==> Installing Cask quotio
> quotio was successfully installed!

Common Commands

CommandAction
brew tapList all tapped repos
brew tap user/repoAdd a third-party repo
brew untap user/repoRemove a tapped repo
brew tap-info user/repoShow tap details and formula count
1
2
3
4
5
6
7
8
9
brew tap
> homebrew/cask
> homebrew/core
> nguyenphutrong/tap

brew tap-info nguyenphutrong/tap
> nguyenphutrong/tap: 1 cask
> /opt/homebrew/Library/Taps/nguyenphutrong/homebrew-tap (6 files, 12.5KB)
> From: https://github.com/nguyenphutrong/homebrew-tap

☕ Support My Work

If you found this post helpful and want to support more content like this, you can buy me a coffee!

Your support helps me continue creating useful articles and tips for fellow developers. Thank you! 🙏

This post is licensed under CC BY 4.0 by the author.