Homebrew install specific version of formula?

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

    I decided, against my better judgment, to create a formula for Maven 3.1.1, which homebrew/versions did not have. To do this:

    1. I forked homebrew/versions on github.
    2. I symlinked from $(brew --prefix)/Library/Taps to the local working copy of my fork. I'll call this my-homebrew/versions.
    3. I tested by specifying the formula as my-homebrew/versions/.
    4. I sent a pull request to homebrew/versions for my new formula.

    Yay.

提交回复
热议问题