I want to do a brew upgrade and tell homebrew do not upgrade the erlang formula since the latest one does not work on my system.
brew upgrade
erlang
Is it possible
brew pin is the way to go. It will pin the formula to the current version
brew pin
brew unpin can be used to reset this
brew unpin
To view all pinned formulae
brew list --pinned
Note: brew upgrade will not upgrade pinned formulae.