What happen when two formulae use the same command #4908
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As a general rule of thumb, we may try to install a binary/command by a different name for one of the formulae. One example of this is in the In cases where it is not sensible to rename the binary/command in either of the formulae, the |
Beta Was this translation helpful? Give feedback.
As a general rule of thumb, we may try to install a binary/command by a different name for one of the formulae. One example of this is in the
fcrackzip
formula, wherezipinfo
is renamed tofcrackzipinfo
to avoid conflicts withzipinfo
provided fromunzip
.In cases where it is not sensible to rename the binary/command in either of the formulae, the
conflicts_with
stanza can be used to indicate that the two formulae can't be installed simultaneously (brew install
would otherwise fail on the link step, refusing to overwrite the symlink to binary of the other formula). One example of this is the conflict marked betweenyq
andpython-yq
. Note that the conflict must be denoted on both sides (or…