Homebrew install specific version of formula?

后端 未结 27 2111
渐次进展
渐次进展 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 11:59

    I just copied an older release of elasticsearch into the /usr/local/Cellar/elasticsearch directory.

    $ mkdir /usr/local/Cellar/elasticsearch/5.4.3/bin
    $ cp elasticsearch /usr/local/Cellar/elasticsearch/5.4.3/bin
    $ brew switch elasticsearch 5.4.3
    

    That's it. Maybe it's useful for anyone.

提交回复
热议问题