brew install with version code example
Example 1: how to install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Example 2: how to install specific version of software on mac using brew
$ brew install [email protected]
Example 3: how to install specific version of software on mac using brew
brew switch [formula] [version]
Example 4: how to install using brew
brew install ant