我如何酿造链接一个特定的版本? [英] How can I brew link a specific version?

查看:71
本文介绍了我如何酿造链接一个特定的版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在/usr/local/Cellar/libfoo中有几桶相同包装的小桶,例如/usr/local/Cellar/libfoo/1.0.1/usr/local/Cellar/libfoo/HEAD/usr/local/Cellar/libfoo/mycopy

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?

推荐答案

用法信息:

Usage: brew switch <formula> <version>

示例:

brew switch mysql 5.5.29

您可以使用info找到系统上安装的版本.

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

brew info mysql

要查看可用的安装版本,您可以提供一个过时的版本号,因为brew将以可用的版本号做出有益的响应:

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


更新(2014年10月15日):

已从brew中删除brew versions命令,但是,如果您希望使用此命令,请先运行brew tap homebrew/boneyard.

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

建议的旧版本安装方法是从homebrew/versions存储库中进行安装,如下所示:

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


有关安装较旧版本的公式的所有方式的详细信息,请阅读此答案.

这篇关于我如何酿造链接一个特定的版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆