Skip to content

How to install both Intel & Apple Silicon versions of formulae? #2141

Discussion options

You must be logged in to vote

Presumably the default when running on an Intel Mac is to install the formulae under /usr/local with symlinks to /usr/local/bin, etc.

Yes, formulae are installed in a prefix /usr/local/Cellar/<package_name>/<version_name> and then symlinks are made into /usr/local, e.g. /usr/local/Cellar/cmake/3.21.0/bin/cmake -> /usr/local/bin/cmake. They're also symlinked into an unversioned "opt-prefix", /usr/local/Cellar/cmake/3.21.0/bin/cmake -> /usr/local/opt/cmake/bin/cmake.

How can I request Apple Silicon versions of formulae? The only relevant option I've seen is --bottle-arch but that talks about "optimizing for".

You can brew fetch <package> --bottle-tag <arch>, e.g. brew fetch cmake --bott…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@MarkCallow
Comment options

@SMillerDev
Comment options

Comment options

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