mirror of
https://github.com/jbranchaud/til
synced 2026-01-06 00:28:01 +00:00
Add Switch Versions of a Brew Formula as a zsh til.
This commit is contained in:
17
zsh/switch-versions-of-a-brew-formula.md
Normal file
17
zsh/switch-versions-of-a-brew-formula.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Switch Versions of a Brew Formula
|
||||
|
||||
If you've installed a couple versions of a program via brew and you'd like
|
||||
to switch from the currently linked version to the other installed version,
|
||||
you can use the `switch` command. For instance, if you are on version
|
||||
`1.8.2` of `phantomjs` and you'd like to switch to `1.9.0`, you can simply
|
||||
invoke:
|
||||
|
||||
```
|
||||
$ brew switch phantomjs 1.9.0
|
||||
```
|
||||
|
||||
More generically:
|
||||
|
||||
```
|
||||
$ brew switch <formula> <version>
|
||||
```
|
||||
Reference in New Issue
Block a user