Skip to content
Snippets Groups Projects
Commit 56fcfdbe authored by CNA-Bld's avatar CNA-Bld Committed by Mike McQuaid
Browse files

update documentation

parent 4165b34d
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment