Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set up a homebrew tap with a git repository on a private network

We're looking at ways to create custom packages and do package management for Macs on which the users do not have admin access. The packages are going to be tools and configurations that are for use within our company only and can not be placed on Github. Is there a way to set up a tap to a Git repository on our private network?

like image 352
pahool Avatar asked Jan 30 '15 17:01

pahool


1 Answers

Homebrew now supports taps from everywhere. The only thing you need is an URL with a protocol git can understand.

Choose an username and a tap name, and ask your users to run the following command:

brew tap username/tapname https://the-url-to-your-repo.example.com

The username/tapname part will be used to refer to your tap in case there’s a conflict, between e.g. vim (the core formula) and username/tapname/vim (your own fork). You might want to use something like yourcompany/packages. The URL doesn’t need to be in https, you can use git:// or anything else git understands.

like image 130
bfontaine Avatar answered Oct 22 '22 07:10

bfontaine