Tips-N'-Trick: add a tip to use switch.
I find brew switch very helpful to activate a different version of an installed formula. This seems worth calling out in the documentation to elevate awareness. Closes Homebrew/homebrew#45694. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
7f167963b3
commit
e4b4ad532f
@ -27,6 +27,15 @@ This can be useful if a package can't build against the version of something you
|
|||||||
|
|
||||||
And of course, you can simply `brew link $FORMULA` again afterwards!
|
And of course, you can simply `brew link $FORMULA` again afterwards!
|
||||||
|
|
||||||
|
## Activate a previously installed version of a formula
|
||||||
|
|
||||||
|
```sh
|
||||||
|
brew info $FORMULA
|
||||||
|
brew switch $FORMULA $VERSION
|
||||||
|
```
|
||||||
|
|
||||||
|
Use `brew info $FORMULA` to check what versions are installed but not currently activated, then `brew switch $FORMULA $VERSION` to activate the desired version. This can be useful if you would like to switch between versions of a formula.
|
||||||
|
|
||||||
## Install into Homebrew without formulas
|
## Install into Homebrew without formulas
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user