Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make a private (i.e. not hosted on GitHub) brew tap?

Tags:

homebrew

I would like to have a private brew tap for homebrew that is not hosted on GitHub. I've tried simply cloning the tap's repo into /usr/local/Library/Taps but doesn't appear to work. Anyone figured this out?

like image 928
ipmcc Avatar asked Apr 28 '14 16:04

ipmcc


People also ask

How do you remove taps from Homebrew?

The brew tap command You can install and uninstall them with brew [un]install , and the formulae are automatically updated when you run brew update .

What is a tap in GitHub?

Taps (Third-Party Repositories) The brew tap command adds more repositories to the list of formulae that Homebrew tracks, updates, and installs from. By default, tap assumes that the repositories come from GitHub, but the command isn't limited to any one location.


Video Answer


2 Answers

The new short answer is yes: brew any-tap has been merged into brew tap so any repository, including private GitHub ones should now be supported.

brew tap restricts users to GitHub and checks for private repos. I created brew any-tap to support a wider variety of taps.

With very small changes (and no extra flags!), this PR brings any-tap to brew.

Users can use brew tap with GitHub as they always have or add one extra argument and tap any repository of any type from anywhere.

tl;dr

brew tap user/name # Same as it ever was
brew tap user/name URL # Tap URL, whatever it happens to be

like image 134
Erik Kaplun Avatar answered Oct 11 '22 21:10

Erik Kaplun


Short answer: It's not supported, but there's a hacky way to do it if you're bound and determined: https://github.com/telemachus/homebrew-anytap

like image 30
ipmcc Avatar answered Oct 11 '22 21:10

ipmcc