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 tap
no parameter will automatically update the existingtap
and list the currenttapped
code>The warehouse
-
brew tap
Locally check this/ https ://github.com/user/repo
made a shallow clone on the warehouse. After completion,brew
can be used on theformulae
contained in this warehouse Work, just like in theHomebrew
standard warehouse, you can usebrew install
orbrew uninstall
to install or The person uninstalls the software on this warehouse. When you execute the commandbrew update
,tap
andformulae
will be updated automatically
< span class="img-wrap"> p>
-
brew tap
made a shallow clone of this/ URL URL
warehouse locally, and the above one The parameter commands are different.URL
is not associated withGithub
by default. ThisURL
does not require that it must be theHTTP
protocol , Any location and any protocol and Git can also be handled very well -
brew untap
Remove the installed/ [ / < user>/ ...] tap
. This repository is deleted, andbrew
is 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 tap
command, the prefixhomebrew-
is not optional, it is required of.
There is no such restriction for the two-parameterbrew tap
command, but you must give a clear and completeURL
address - 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
:tap
ofnginx modules
-
InstantClientTap/instantclient
:Oracle
tap
-
petere/postgresql
: allows multiplePostgreSQL
versions to be installed at the same timetap
-
dunn/emacs
:Emacs package
tap
-
osrf/simulation
:tap of machine simulation
< li> sidaf/pentest
: tap
of penetration testing tools
Scan for attention, view more articles, and improve programming ability