Taps are external sources of Homebrew formulae and/or external commands. They can be created by anyone to provide their own formulae and/or external commands to any Homebrew user.
Setup a tap repository
Create a git repository with the following content, for example:
1 | # The files under the "Formula" directory are the formulae. |
In this example, the repo is named as “homebrew-repo”. Please keep the “homebrew-“ prefix and you can rename the “repo” part.
Put the git repo to the git server, such as “git@github.com:auser/homebrew-repo.git”.
Add the tap to your homebrew
Run the following command(s) on your mac:
1 | brew tap auser/repo https://github.com/auser/homebrew-repo.git |
Install formula
1 | # Run the following command to install the formula from your tap server: |
Remove the tap from Homebrew
1 | brew untap auser/repo |