Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does brew tap mean?

Tags:

macos

homebrew

Sometimes I see articles saying command of brew tap before brew install something. I am wondering what does tap mean? And why must I run tap before install?

like image 544
Zhang Buzz Avatar asked Dec 22 '15 03:12

Zhang Buzz


People also ask

What is brew tap new?

The brew tap-new command can be used to create a new tap along with some template files. Tap formulae follow the same format as the core's ones, and can be added under either the Formula subdirectory, the HomebrewFormula subdirectory or the repository's root.

What is brew Cask tap?

brew cask is an extension to brew that allows management of graphical applications through the Cask project. Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to OS X applications and large binaries alike. Cask deals with a mixture of software and licences.

How do I delete a brew tap?

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 .


2 Answers

The tap command allows Homebrew to tap into another repository of formulae. Once you've done this you've expanded your options of installable software.

These additional Git repos (inside /usr/local/Homebrew/Library/Taps) describe sets of package formulae that are available for installation.

E.g.

brew tap                     # list tapped repositories brew tap <tapname>           # add tap brew untap <tapname>         # remove a tap 
like image 156
Snowcrash Avatar answered Sep 21 '22 12:09

Snowcrash


brew tap adds more repos to the list of formulae that brew tracks, updates, and installs from

brew tap <user>/<repo> makes a shallow clone of the repository at https://github.com/user/homebrew-repo. Note that brew tap prefixes the repo name with "homebrew-". After that, brew will be able to work on those formulae as if they were in Homebrew's canonical repository

The full documentation can be found here with all the available options.

like image 43
Mehdi Ijadnazar Avatar answered Sep 18 '22 12:09

Mehdi Ijadnazar