Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
56fcfdbe
Commit
56fcfdbe
authored
9 years ago
by
CNA-Bld
Committed by
Mike McQuaid
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
update documentation
parent
4165b34d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
share/doc/homebrew/brew-tap.md
+32
-7
32 additions, 7 deletions
share/doc/homebrew/brew-tap.md
with
32 additions
and
7 deletions
share/doc/homebrew/brew-tap.md
+
32
−
7
View file @
56fcfdbe
...
...
@@ -54,14 +54,39 @@ edavis/emacs
## Formula duplicate names
If your tap contains a formula that is also present in master, that's fine,
but
it means that you must install it explicitly.
If your tap contains a formula that is also present in master, that's fine,
but
it means that you must install it explicitly
by default
.
For example, you can create a tap for an alternative
`vim`
formula, but in that
case when you install from there you must run the command with a more explicit
installation target:
If you would like to prioritize a tap over master, you can use
`brew tap-pin username/repo`
to pin the tap,
and use
`brew tap-unpin username/repo`
to revert the pin.
Whenever a
`brew install foo`
command is issued, brew will find which formula
to use by searching in the following order:
*
Pinned taps
*
Core formulas
*
Other taps
If you need a formula to be installed from a particular tap, you can use fully
qualified names to refer to them.
For example, you can create a tap for an alternative
`vim`
formula. Without
pinning it, the behavior will be
```
bash
brew
install
vim
# installs from Homebrew/homebrew
brew
install
username/repo/vim
# installs from your custom repo
brew
install
vim
# installs from Homebrew/homebrew
brew
install
username/repo/vim
# installs from your custom repo
```
However if you pin the tap with
`brew tap-pin username/repo`
, you will need to
use
`homebrew/homebrew`
to refer to the core formula.
```
bash
brew
install
vim
# installs from your custom repo
brew
install
homebrew/homebrew/vim
# installs from Homebrew/homebrew
```
Do note that pinned taps are prioritized only when the formula name is directly
given by you. i.e., it will not influence formulae automatically installed as
dependencies.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment