问题描述
我想做一个brew upgrade
,并告诉自制软件不要升级erlang
公式,因为最新的公式在我的系统上不起作用.
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.
是否可以做类似homebrew upgrade --skip erlang
的事情?
Is it possible do do something like homebrew upgrade --skip erlang
?
推荐答案
我终于找到了答案:自从提交 85eb73ce 有一个pin
子命令可用.因此,忽略brew upgrade
上的公式就像通过brew pin <formula>
固定它一样简单.要取消固定,只需调用brew unpin <formula>
.
I finally found an answer: since commit 85eb73ce 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>
.
值得注意的是,无论是否固定该brew upgrade <formula>
都会继续更新该公式.
It is worth noting that brew upgrade <formula>
will still update the formula regardless of whether or not it is pinned.
这篇关于忽略冲泡升级的配方的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!