Linuxbrew logo


GitHub release

Linuxbrew is a fork of Homebrew, the macOS package manager, for Linux.

It can be installed in your home directory and does not require root access. The same package manager can be used on both your Linux server and your Mac laptop. Installing a modern version of glibc and gcc in your home directory on an old distribution of Linux takes five minutes.

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.

To receive updates of major changes to Linuxbrew subscribe to the Linuxbrew Updates issue on GitHub.

Install Linuxbrew

The installation script installs Linuxbrew to /home/linuxbrew/.linuxbrew if possible and in your home directory at ~/.linuxbrew otherwise.

Paste at a Terminal prompt:

ruby -e "$(curl -fsSL"

Follow the Next steps instructions to add Linuxbrew to your PATH and to your ~/.bash_profile.

If you installed Linuxbrew in /home/linuxbrew/.linuxbrew (recommended):

echo 'export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"' >>~/.bash_profile

If you installed Linuxbrew in your home directory:

echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile

You’re done! Try installing a package:

brew install hello

If you’re using an older distribution of Linux, installing your first package will also install a recent version of gcc.

Use brew doctor to troubleshoot common issues.



Paste at a Terminal prompt:

Debian or Ubuntu

sudo apt-get install build-essential curl file git python-setuptools ruby

Fedora, CentOS or Red Hat

sudo yum groupinstall 'Development Tools' && sudo yum install curl file git irb python-setuptools ruby

32-bit x86 platforms

Linuxbrew does not currently support 32-bit x86 platforms. It would be possible for Linuxbrew to work on 32-bit x86 platforms with some effort. Pull requests would be welcome if someone were to volunteer to maintain the 32-bit x86 support.


Bottles are Linuxbrew’s precompiled binary packages. Linuxbrew bottles work on any Linux system. They do however require glibc 2.19 or better. On systems with an older version of glibc, Linuxbrew will install glibc the first time that you install a bottled formula. If you prefer to use the glibc provided by your system and build all formulas from source, add to your .bashrc or .zshrc:


Alternative Installation

Extract (or git clone) Linuxbrew wherever you want. Use /home/linuxbrew/.linuxbrew if possible.

git clone ~/.linuxbrew
export MANPATH="$(brew --prefix)/share/man:$MANPATH"
export INFOPATH="$(brew --prefix)/share/info:$INFOPATH"

Update Bug

If Homebrew was updated on Aug 10-11th 2016 and brew update always says Already up-to-date. you need to run:

cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update

What Packages Are Available?

  1. Type brew search for a list.
  2. Or visit to browse packages online.
  3. Or use brew search --desc <keyword> to browse packages from the command line.

More Documentation

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.

Something broke!

Many of the Homebrew formulae work on either Mac or Linux without changes, but some formulae will need to be adapted for Linux. If a formula doesn’t work, open an issue on GitHub or, even better, submit a pull request.


We’d love you to contribute to Linuxbrew or its upstream project, Homebrew. First, please read our Contribution Guide and Code of Conduct. Please see our guidelines on whether to send pull requests to Linuxbrew or Homebrew.

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 running brew audit --strict with some of the packages you use (e.g. brew audit --strict wget if you use wget) and then 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. Good luck!


Please report security issues to our HackerOne.

Who Are You?

Linuxbrew is maintained by Shaun Jackman, Piotr Gaczkowski, Maxim Belkin, and Jonathan Chang.

Bob W. Hogg is also a Linuxbrew maintainer, but is currently on leave and will return later in the year.

Homebrew’s lead maintainer is Mike McQuaid.

Homebrew’s current maintainers are Alyssa Ross, Andrew Janke, Baptiste Fontaine, Alex Dunn, FX Coudert, ilovezfs, Josh Hagins, JCount, Misty De Meo, neutric, Tomasz Pajor, Markus Reiter, Tim Smith, Tom Schoonjans, Uladzislau Shablinski and William Woodruff.

Former maintainers with significant contributions include Xu Cheng, Martin Afanasjew, Dominyk Tiller, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg and Homebrew’s creator: Max Howell.

Linuxbrew Community

Homebrew for macOS Community


Code is under the BSD 2-clause “Simplified” License. Documentation is under the Creative Commons Attribution license.


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 to Homebrew, the upstream project of Linuxbrew, through Patreon:

Donate with Patreon


Our Xserve ESXi boxes for CI are hosted by MacStadium.

Powered by MacStadium

Our Mac Minis for CI were paid for by our Kickstarter supporters.

Our Mac Minis for CI are hosted by The Positive Internet Company.

Our bottles (binary packages) are hosted by Bintray.

Downloads by Bintray

Our website is hosted by Netlify.

Deploys by Netlify

Secure password storage and syncing provided by 1Password for Teams by AgileBits


Homebrew is a member of the Software Freedom Conservancy

Software Freedom Conservancy