Homebrew-cask: How to install private dmg files ?

Created on 15 Dec 2013  路  4Comments  路  Source: Homebrew/homebrew-cask

Hello

I want to install private and custom softwares, how is it possible to do that ?
How Can I execute my private create casks files ?

Thx

Most helpful comment

Hi @arnogues - there's actually a pretty nice feature you can use for this. We support Casks in arbitrary Homebrew Taps, so if you create your own tap that's private, you can maintain your own set of private Casks in that tap.

Take a look at the following repos for examples of external Taps that contain Casks:

So all you'd need to do once you set up a repo like that (with a homebrew- prefix), is run:

# given a cask like myusername/homebrew-mytap
brew tap myusername/mytap

Then all the Casks in the Casks directory will show up - and you can keep them versioned separately from homebrew-cask itself.

I think this officially handles your use case, feel free to reopen if it does not.

All 4 comments

You could create your cask (and not send a pull request)...

cd $(brew --repository)/Library/Taps/phinze-cask
brew cask create my-private-cask
brew cask install my-private-cask

Or better yet make an arbitrary Homebrew Tap as @phinze describes below.

Thank you, but if I have already created this cask and want to use it on another computer, what should I do ?

You can duplicate the phinze/homebrew-cask repository and then tap the dupe instead of phinze/homebrew-cask.

Then you can make your duplicated repo private, and push changes to its master or other branches like normal.

You will have to keep the dupe up to date by rebasing or merging with upstream.

Hi @arnogues - there's actually a pretty nice feature you can use for this. We support Casks in arbitrary Homebrew Taps, so if you create your own tap that's private, you can maintain your own set of private Casks in that tap.

Take a look at the following repos for examples of external Taps that contain Casks:

So all you'd need to do once you set up a repo like that (with a homebrew- prefix), is run:

# given a cask like myusername/homebrew-mytap
brew tap myusername/mytap

Then all the Casks in the Casks directory will show up - and you can keep them versioned separately from homebrew-cask itself.

I think this officially handles your use case, feel free to reopen if it does not.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akashlevy picture akashlevy  路  3Comments

pablopunk picture pablopunk  路  3Comments

jrwiegand picture jrwiegand  路  3Comments

gebing picture gebing  路  3Comments

hovancik picture hovancik  路  4Comments