Source: https://medium.com/@schmijos/installing-old-homebrew-formulas-dc91de0c329c
- Open the GitHub page for the formula:
$ brew info --github awscli- Click on History.
- Locate the commit with the version required and click on it.
- Locate the file
awscli.rb, click on...and View file. - Click on Raw and copy URL.
- Install formula:
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/497b20ccc30e674a22dd3f5efb9abcae162f8972/Formula/awscli.rbWe may have to unlink the current version first:
$ brew unlink awscli- Check installation:
$ brew ls --versions awscli
awscli 2.0.0 1.17.10- Switch to the new version:
$ brew switch awscli 1.17.10- Check versions:
$ aws --version
aws-cli/1.17.10 Python/3.8.1 Darwin/19.3.0 botocore/1.14.10