homebrew-core only has formula for latest versions of teleport. This Tap allows the installs of previous major versions of Teleport.
brew tap jmoney8080/teleport
brew install teleport@<version>
You can either update your $PATH
for the version of Teleport installed, or you can tell Homebrew to link a version for you:
brew link --force teleport@<version>
If the above command is scary then the following command will print what is going to be changed
brew link --force --dry-run teleport@<version>
Adding another version is fairly straightforward. Technically, it is
adding a file into the Formula
subdirectory with the proper
information for the version. Realisticly, it's better to copy an
existing file and make the changes to it.
There are three changes - the name of the class (on first line), the
URL to the archive file, the sha256 hash of the archive
file. Computing the sha256 hash requires the archive file. So it must
be downloaded locally and then run the shasum -a 256
command on a
Mac.