Homebrew install specific version of formula?

后端 未结 27 2627
渐次进展
渐次进展 2020-11-21 11:21

How do I install a specific version of a formula in homebrew? For example, postgresql-8.4.4 instead of the latest 9.0.

27条回答
  •  清歌不尽
    2020-11-21 12:04

    On the newest version of homebrew (0.9.5 as of this writing) there will be a specific recipe for the version of the homebrew keg you want to install. Example:

    $ brew search mongodb
    mongodb    mongodb24  mongodb26
    

    Then just do brew install mongodb26 like normal.

    In the case that you had already installed the latest version, make sure to unlink the latest version and link the desired version: brew unlink mongodb && brew link mongodb26.

提交回复
热议问题