Skip to content

What happen when two formulae use the same command #4908

Discussion options

You must be logged in to vote

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, where zipinfo is renamed to fcrackzipinfo to avoid conflicts with zipinfo provided from unzip.

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 between yq and python-yq. Note that the conflict must be denoted on both sides (or…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by quackerex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants