Ignore formula on brew upgrade

homebrew

Solution

I finally found an answer: since commit [85eb73ce][1] there is a `pin` subcommand available. So ignoring a formula on `brew upgrade` is as simple as pinning it via `brew pin <formula>`. To un-pin it, simply invoke `brew unpin <formula>`.

It is worth noting that `brew upgrade <formula>` will still update the formula regardless of whether or not it is pinned.

Problem

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. Is it possible do do something like `homebrew upgrade --skip erlang`?

Original source