Skip to content

Differences Homebrew on MacOS vs Linux #2631

Answered by iMichka
oatbrew asked this question in Linux
Discussion options

You must be logged in to vote

Hi. Yes the sources are exactly the same. All the packages build definitions are defined at https://github.com/Homebrew/homebrew-core.
You can look at each formula separately, some of them have OS.mac? / OS.linux conditions for minor mac/Linux only tweaks.

The big difference between macOS and Linux are mainly:

  • mac bottles are built with system llvm/clang and linux bottles are built with system gcc 5 (we plan to migrate to gcc 7 next year).
  • mac formulae try to use as many low-level system libraries as possible (gettext, curl, ncurses, ...), whereas Linux packages ship all of these (because docker and a more fragmented install base).

I do not think it is possible to cross-compile though: …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@oatbrew
Comment options

@SMillerDev
Comment options

@gromgit
Comment options

Answer selected by oatbrew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
4 participants