Homebrew install specific version of formula?

后端 未结 27 2681
渐次进展
渐次进展 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:09

    Simple Workflow

    Now that Homebrew/versions has been deprecated, Homebrew/core supports a few versions of formulae with a new naming format.

    To install a specific version, e.g. postgresql 9.5 you simply run:

    $ brew install postgresql@9.5
    

    To list the available versions run a search with @:

    $ brew search postgresql@
    ==> Searching local taps...
    postgresql@10.1 ✔     postgresql@9.4        postgresql@9.5        postgresql@9.6
    

提交回复
热议问题