Homebrew is a package manager for Mac developed using ruby.
Here is an explanation Knowledge about Taps(third-party-repositories)
brew tap can be the software of brew Track, update, install and add more tap formulae
If you don’t find the software you need in the core repository, then you need to install a third-party repository to install you Required software
The repository source of the tap command comes from Github by default, but this command is not limited to this place
brew tap command
-
brew tapno parameter will automatically update the existingtapand list the currenttappedcode>The warehouse
-
brew tapLocally check this/ https ://github.com/user/repomade a shallow clone on the warehouse. After completion,brewcan be used on theformulaecontained in this warehouse Work, just like in theHomebrewstandard warehouse, you can usebrew installorbrew uninstallto install or The person uninstalls the software on this warehouse. When you execute the commandbrew update,tapandformulaewill be updated automatically
< span class="img-wrap"> p>
-
brew tapmade a shallow clone of this/ URL URLwarehouse locally, and the above one The parameter commands are different.URLis not associated withGithubby default. ThisURLdoes not require that it must be theHTTPprotocol , Any location and any protocol and Git can also be handled very well -
brew untapRemove the installed/ [ / < user>/ ...] tap. This repository is deleted, andbrewis no longer available in this repository. >formulae. You can delete several repositories at the same time
Repository naming convention
- On
Github, you The warehouse name must behomebrew-something. In order to use a parameter of thebrew tapcommand, the prefixhomebrew-is not optional, it is required of.
There is no such restriction for the two-parameterbrew tapcommand, but you must give a clear and completeURLaddress - When you are in the command When using
brew tap, you can omit the prefix ofhomebrew-
In other words: brew tap username/ foobar is a shorthand used as the long version of brew tap username/homebrew-foobar.
brew can be added by yourself< code>homebrew- prefix when needed
Repeated name installation package processing
If you want to install an installation package in your tap, but it also appears on homebrew/core, which means you must clearly indicate the name of tap to install it , Otherwise the package on homebrew/core will be installed by default.
If you want to install tap, the priority order is higher than homebrew/core is the default repository, you can use brew tap-pin username/repo to go to the pin repository. You can use brew-tap -unpin username/repo restore this pin
When you use the command brew install foo, brew Find which formula(tap) will be used in the following order:
- pinned taps
- core formulae
< li>other taps
For example:
You want to install the vim installation package, and there is no pinned A warehouse:
br ew install vim # installs from homebrew/core
brew install username/repo/vim # installs from your custom repo
You want to install the vim installation package, and there is< code>pinned warehouse:
brew install vim # installs from your custom repo
brew install homebrew/core/vim # installs from homebrew/core
Taps you can follow
-
homebrew/php:formulae - associated with
php>denji/nginx:tapofnginx modules -
InstantClientTap/instantclient:Oracletap -
petere/postgresql: allows multiplePostgreSQLversions to be installed at the same timetap -
dunn/emacs:Emacs packagetap -
osrf/simulation:tap of machine simulation
< li> sidaf/pentest: tap of penetration testing tools
Scan for attention, view more articles, and improve programming ability
