When using Homebrew Tap, it's quite hard to install an older or specific version of Homebrew package.
It took me awhile to run some tests before I found the solution (see below).
If you are facing the same problem, you can use my script below to solve the problem.
- Download the script below to your local machine
- Run
$ chmod +x /path/to/install-specific-version-homebrew-tap-package.sh
- Update all lines that start with
export
keywords - Run
/path/to/install-specific-version-homebrew-tap-package.sh
to execute the script - Profit
This solution may break your brew update
command. If you are not able to perform brew update
correctly, you can untap all tapped formulae using this command:
$ brew tap | xargs -I % sh -c 'brew untap --force %'