Forrest logo
back to the brew tool

brew:warp:95e033d284e044b48436f1a1a27b6797

Install a specific version of a Homebrew formula
$ brew install ${formula_name}@${version_name}
try on your machine

This command installs a specific version of a formula using Homebrew package manager on macOS systems.

Here's the breakdown of the command:

  • brew install: This is the Homebrew command to install a package or formula.
  • ${formula_name}: This is a placeholder for the name of the formula (package) you want to install. You need to replace ${formula_name} with the actual name of the formula you want to install. For example, if you want to install the formula called gcc, you would replace ${formula_name} with gcc.
  • @: This separates the formula name from the version name.
  • ${version_name}: This is a placeholder for the specific version of the formula you want to install. You need to replace ${version_name} with the version you desire. For example, if you want to install version 9.2.0 of GCC, you would replace ${version_name} with 9.2.0.

So, the full command would look like brew install gcc@9.2.0, assuming you want to install version 9.2.0 of the GCC formula.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the brew tool