How do I install a specific version of a formula in homebrew? For example, postgresql-8.4.4 instead of the latest 9.0.
To install a specific version of a formula using Homebrew, you can use the @
symbol followed by the version number in the formula name. Here's an example of how you can install a specific version of PostgreSQL, such as postgresql@8.4.4
, instead of the latest version:
sh
# Install the specific version of PostgreSQL
brew install postgresql@8.4.4
After running this command, Homebrew will download and install the specified version of PostgreSQL.
Keep in mind that the availability of specific formula versions may depend on whether the formula maintainers have provided those versions in the Homebrew repository. You can use the brew search
command to see the available versions for a formula:
sh
# Search for available versions of PostgreSQL
brew search postgresql
Please note that Homebrew's behavior and formula availability may change over time, so make sure to check the official Homebrew documentation or website for the most up-to-date information.
Comments
Post a Comment