I\'m trying to install memcached with older versions (ex: 1.4.5) but I\'m not sure how to do it.
brew install memcached
installs the latest.
I
A more expanded version of the good answer from Adrian is also here on SO.
https://stackoverflow.com/a/53766019/3794873
One thing to keep in mind is that if you are installing an older Formula the Homebrew API/methods may have changed since that time so you should brew edit appFormula
against the current version and compare to the brew edit app@your.version
if you encounter any errors trying to brew install app@your.version
after the brew extract
command in the answer linked.