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:
Joel B Schwartz 2015-11-04 12:59:45 -05:00 committed by Mike McQuaid
parent 7f167963b3
commit e4b4ad532f

View File

@ -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!
## 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
```sh