[!CAUTION] This Fork Since this is an unsupported hack, this may eventually break.
All this fork does is hack to allow ruby installed by rbenv to be used instead of
/usr/bin/ruby
: GitHub commit - Allow ruby from rbenv to take precedence:# filter the user environment PATH="/usr/bin:/bin:/usr/sbin:/sbin" PATH="${HOME}/.rbenv/shims:${PATH}" #FILTERED_ENV=() FILTERED_ENV=("RBENV_VERSION=${RBENV_VERSION-}")To install this Homebrew, you'll first have to install
rbenv
(e.g. Ubuntu 22.04's version fromapt
is ok):git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build # apt's ruby-build is too out of date #sudo apt install libyaml-dev #sudo dnf install libyaml-devel rbenv install 3.3.6 rbenv shell 3.3.6 export HOMEBREW_BREW_GIT_REMOTE=https://github.com/huyz/brew-for-linux-arm export HOMEBREW_DEVELOPER=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | sed '532s/abort/warn/')"You'll also need to add the core tap back (nowadays deprecated):
brew tap homebrew/coreAfter installation, to run
brew
you should probably create abrew
wrapper that contains:#!/bin/bash [[ -d ~/.rbenv/bin ]] && export PATH="~/.rbenv/bin:$PATH" if command -v rbenv &>/dev/null; then export PATH="${PATH//$(rbenv root)\/shims:/}" eval "$(rbenv init -)" rbenv shell 3.3.6 else echo "Warning: rbenv not found" >&2 fi HOMEBREW_BREW_GIT_REMOTE=https://github.com/huyz/brew-for-linux-arm HOMEBREW_DEVELOPER=1 exec /home/linuxbrew/.linuxbrew/bin/brew "$@"Occasionally, you may get an error from
brew upgrade
because the ruby version required by Homebrew will be bumped upstream. To upgrade, you can do:cd "$(rbenv root)"/plugins/ruby-build git pull origin master rbenv install 3.3.6And you should update your
brew
wrapper that you created as above:sed -i 's/^\([[:space:]]*rbenv shell\) .*/\1 3.3.6/' "$(which brew)"You can then
brew upgrade
as usual.[!IMPORTANT] Partial solution Of course, this is only half the battle. Many official formulas won't work because they weren't written with Linux ARM in mind. (For example, as of 2024-07-19, the rust formula will fail to build.)
[!WARNING] I'll try to regularly rebase my changes on top of the latest upstream commits, and then I'll force push the new rebased commits. So you might need to
reset --hard
after fetching updates for this repo
Features, usage and installation instructions are summarised on the homepage. Terminology (e.g. the difference between a Cellar, Tap, Cask and so forth) is explained here.
- Type
brew formulae
for a list. - Or visit formulae.brew.sh to browse packages online.
brew help
, man brew
or check our documentation.
First, please run brew update
and brew doctor
.
Second, read the Troubleshooting Checklist.
If you don't read these it will take us far longer to help you with your problem.
Homebrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to the project. Every donation will be spent on making Homebrew better for our users.
Please consider a regular donation through GitHub Sponsors, Open Collective or Patreon. Homebrew is fiscally hosted by the Open Source Collective.
For questions about donations, including corporate giving, please email the Homebrew PLC at plc@brew.sh.
- Homebrew/discussions (forum)
- @homebrew@fosstodon.org (Mastodon)
- @MacHomebrew (𝕏 (formerly known as Twitter))
We'd love you to contribute to Homebrew. First, please read our Contribution Guide and Code of Conduct.
We explicitly welcome contributions from people who have never contributed to open-source before: we were all beginners once! We can help build on a partially working pull request with the aim of getting it merged. We are also actively seeking to diversify our contributors and especially welcome contributions from women from all backgrounds and people of colour.
A good starting point for contributing is to first tap homebrew/core
, then run brew audit --strict
with some of the packages you use (e.g. brew audit --strict wget
if you use wget
) and read through the warnings. Try to fix them until brew audit --strict
shows no results and submit a pull request. If no formulae you use have warnings you can run brew audit --strict
without arguments to have it run on all packages and pick one.
Alternatively, for something more substantial, check out one of the issues labelled help wanted
in Homebrew/brew or Homebrew/homebrew-core.
Good luck!
Please report security issues by filling in the security advisory form.
Homebrew's Project Leader is Mike McQuaid.
Homebrew's Project Leadership Committee is Colin Dean, Issy Long, Mike McQuaid, Patrick Linnane and Vanessa Gennarelli.
Homebrew's Technical Steering Committee is Bo Anderson, FX Coudert, Michka Popoff, Mike McQuaid and Rylan Polster.
Homebrew's maintainers are Alexander Bayandin, Bevan Kay, Bo Anderson, Branch Vincent, Caleb Xu, Carlo Cabrera, Daeho Ro, Douglas Eichelberger, Dustin Rodrigues, Eric Knibbe, FX Coudert, Issy Long, Justin Krehel, Klaus Hipp, Markus Reiter, Michael Cho, Michka Popoff, Mike McQuaid, Nanda H Krishna, Patrick Linnane, Rui Chen, Ruoyu Zhong, Rylan Polster, Sam Ford, Sean Molenaar, Štefan Baebler, Thierry Moisan, Timothy Sutton and William Woodruff.
Former maintainers with significant contributions include Miccal Matthews, Misty De Méo, Shaun Jackman, Vítor Galvão, Claudia Pellegrino, Seeker, Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew's creator: Max Howell.
Code is under the BSD 2-clause "Simplified" License. Documentation is under the Creative Commons Attribution license.
Our macOS continuous integration infrastructure is hosted by MacStadium's Orka.
Secure password storage and syncing is provided by 1Password for Teams.
Flaky test detection and tracking is provided by BuildPulse.
https://brew.sh's DNS is resolving with DNSimple.
Homebrew is generously supported by GitHub, Custom Ink, Randy Reddig, Codecademy, MacPaw Inc., Tim Miller, Workbrew and many other users and organisations via GitHub Sponsors.