Confusion between Homebrew-core and Linuxbrew-core



I’m new to Homebrew and its community, so this is my first post :slight_smile: As far as I know, Homebrew installed on macOS uses the homebrew-core tap as the default one. I’ve just installed Homebrew on my second computer which runs Ubuntu, and I’m a bit confused about the differences of homebrew-core and linuxbrew-core taps and why the first one is still being the default one. Using linux shouldn’t all formulas be fetched from linuxbrew-core instead?

Thank you :slight_smile:

(Shaun Jackman) #2

Hi, @MetalGearDaner. The default core tap on Linuxbrew is linuxbrew-core. For technical simplicity, its location on disk is still Library/Taps/homebrew/homebrew-core. Its default git remote is however Homebrew/linuxbrew-core. You can confirm with…

cd $(brew --repo homebrew/core)
git remote -v


Thanks for the reply @sjackman :slight_smile: !

I have just confirmed the default tap with those commands you gave me and everything is as expected. The result is:

origin (fetch)
origin (push)

Based on this information, when I enter, for example, the command brew install jdk must I assume it will install the “homebrew/linuxbrew-core/jdk” formula instead of the “jdk” one? Or even though homebrew/linuxbrew-core is the default tap I have to explicitly type brew install homebrew/linuxbrew-core/jdk?

I ask this because when I enter brew search jdk on Linux’ brew the displayed information is this, making me understand that jdk is not part of the homebrew/linuxbrew-core tap:

Best regards :slight_smile: