Homebrew install specific version of formula?

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

    If you can't find your version with brew search , you can also try going over the commit logs for your formula to find the version you want:

    here is an example for installing an older version of nginx via brew:

    • ngxnx formula commit log

    • see nginx: update 1.6.3 bottle eba75b9a1a474b9fc4df30bd0a32637fa31ec049

    From there, we can install 1.6.3 with the sha and raw git url:

    brew install https://raw.githubusercontent.com/Homebrew/homebrew/eba75b9a1a474b9fc4df30bd0a32637fa31ec049/Library/Formula/nginx.rb

提交回复
热议问题