2017-04-21 40 views
25

最近弃用Homebrew homebrew/versions,赞成通过[email protected]格式在homebrew/core上提供版本。例如(根据this answer),您可以做brew install [email protected]Homebrew:使用新版本的公式@版本格式列出可用版本

当然,这不适用于任意版本。例如,install [email protected]出现“错误:没有在轻敲中找到公式”。

在旧方法下,我可以运行brew versions <formula>查看可用版本。我如何列出可用版本?

回答

20

您可以使用brew search搜索版本。

例如:

$ brew search postgresql 
postgresql ✔  [email protected]  [email protected] 
+3

这就是我害怕......我需要一个老版本,只有程序有可用的最新版本。呃,好吧。 –