HOMEBREW’s TAP function detailed


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 existing tap and list the current tapped code>The warehouse

 Picture description
Picture description

  • brew tap / Locally check this https ://github.com/user/repo made a shallow clone on the warehouse. After completion, brew can be used on the formulae contained in this warehouse Work, just like in the Homebrew standard warehouse, you can use brew install or brew uninstall to install or The person uninstalls the software on this warehouse. When you execute the command brew update, tap and formulae will be updated automatically

< span class="img-wrap">picture description p>

  • brew tap / URL made a shallow clone of this URL warehouse locally, and the above one The parameter commands are different. URL is not associated with Github by default. This URL does not require that it must be the HTTP protocol , Any location and any protocol and Git can also be handled very well
  • brew untap / [/ < user>/ ...] Remove the installed tap. This repository is deleted, and brew 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 be homebrew-something. In order to use a parameter of the brew tap command, the prefix homebrew- is not optional, it is required of.
    There is no such restriction for the two-parameter brew tap command, but you must give a clear and complete URL address
  • When you are in the command When using brew tap, you can omit the prefix of homebrew-

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:

  1. pinned taps
  2. core formulae
  3. < 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 of nginx modules
  • InstantClientTap/instantclient: Oracle tap
  • petere/postgresql: allows multiple PostgreSQL versions to be installed at the same time tap
  • dunn/emacs: Emacs package tap
  • < li> sidaf/pentest: tap of penetration testing tools

  • osrf/simulation: tap of machine simulation

Picture description

Scan for attention, view more articles, and improve programming ability

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 5165 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.