Make a GitHub repository that conforms to the naming scheme $username/homebrew-$tapname
.
It can be empty or already exist, it doesn't matter.
Get the formula at the version you want with brew extract $package $username/homebrew-$tapname --version=$version
This will automatically tap
your tap, but if you want to add this to another machine, you'll have to:
- commit and push your changes from the
$(brew --prefix)/Homebrew/Library/Taps/$username/
directory, brew tap $username/$tapname
from the machine you want to add the tap to.
To install, brew install $package@$version
.