Homebrew - How can I brew link a specific version

De openkb
Aller à : Navigation, rechercher

Sommaire

Questions

I have a few kegs of the same package in /usr/local/Cellar/libfoo like /usr/local/Cellar/libfoo/1.0.1, /usr/local/Cellar/libfoo/HEAD and /usr/local/Cellar/libfoo/mycopy

How can I brew link to a specific version?

Answers

The usage info:

Usage: brew switch <formula> <version>

Example:

brew switch mysql 5.5.29

You can find the versions installed on your system with info.

brew info mysql

And to see the available versions to install, you can provide a dud version number, as brew will helpfully respond with the available version numbers:

brew switch mysql 0

  Update (15.10.2014):   

The brew versions command has been removed from brew, but, if you do wish to use this command first run brew tap homebrew/boneyard.

The recommended way to install an old version is to install from the homebrew/versions repo as follows:

$ brew tap homebrew/versions
$ brew install mysql55

http://stackoverflow.com/a/4158763/1574376 http://stackoverflow.com/a/4158763/1574376

Source

License : cc by-sa 3.0

http://stackoverflow.com/questions/13477363/how-can-i-brew-link-a-specific-version

Related

Outils personnels
Espaces de noms

Variantes
Actions
Navigation
Outils