Linuxbrew/brew has been merged intoHomebrew/brew!Existing installations of Linuxbrew will be automatically migrated to Homebrew. Linuxbrew/brew will no longer be updated. See theHomebrew documentation of Linuxbrewand the Homebrew 2.0.0blog post.
Homebrew officially supports Linux and Windows 10 with Windows Subsystem for Linux (WSL). “Homebrew on Linux” is called “Linuxbrew”. You can install it in your home directory, so it does not require sudo, and use it to install software that your host distribution’s package manager does not provide. Linuxbrew uses its own repository for formulae:Linuxbrew/homebrew-core.
The Homebrew package manager may be used on Linux and Windows 10, usingWindows Subsystem for Linux (WSL).Homebrew is referred to as Linuxbrew when running on Linux or Windows. It can be installed in your home directory, in which case it does not usesudo.Linuxbrew does not use any libraries provided by your host system, exceptglibcandgccif they are new enough. Linuxbrew can install its own current versions ofglibcandgccfor older distribution of Linux.
Features,dependenciesandinstallation instructionsare described below. Terminology (e.g. the difference between a Cellar, Tap, Cask and so forth) isexplained in the documentation.
- Can install software to your home directory and so does not requiresudo
- Install software not packaged by your host distribution
- Install up-to-date versions of software when your host distribution is old
- Use the same package manager to manage your macOS, Linux, and Windows systems
Paste at a terminal prompt:
sh -c"$(curl -fsSL https://raw.githubusercontent /Linuxbrew/install/master/install.sh)"
The installation script installs Linuxbrew to/home/linuxbrew/.linuxbrew
usingsudoif possible and in your home directory at~/.linuxbrew
otherwise. Linuxbrew does not usesudoafter installation. Using/home/linuxbrew/.linuxbrew
allows the use of more binary packages (bottles) than installing in your personal home directory.
Follow theNext stepsinstructions to add Linuxbrew to yourPATH
and to your bash shell profile script, either~/.profile
on Debian/Ubuntu or~/.bash_profile
on CentOS/Fedora/RedHat.
test-d~/.linuxbrew&&eval$(~/.linuxbrew/bin/brew shellenv)
test-d /home/linuxbrew/.linuxbrew&&eval$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test-r~/.bash_profile&&echo"eval\$($(brew --prefix)/bin/brew shellenv)">>~/.bash_profile
echo"eval\$($(brew --prefix)/bin/brew shellenv)">>~/.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 ofglibc
andgcc
.Usebrew doctor
to troubleshoot common issues.
- GCC4.4 or newer
- Linux2.6.32 or newer
- Glibc2.12 or newer
- 64-bit x86CPU
Paste at a terminal prompt:
sudo apt-get install build-essential curl file git
sudo yum groupinstall'Development Tools'&&sudo yum install curl file git
Linuxbrew can run on Raspberry Pi (32-bit ARM), but no binary packages (bottles) are available. Support for Raspberry Pi is on a best-effort basis. Pull requests are welcome to improve the experience on Raspberry Pi.
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. An interested and dedicated person could maintain a fork of Homebrew to develop support for 32-bit x86.
Extract orgit clone
Linuxbrew wherever you want. Use/home/linuxbrew/.linuxbrew
if possible.
git clone https://github /Homebrew/brew~/.linuxbrew/Homebrew
mkdir~/.linuxbrew/bin
ln -s../Homebrew/bin/brew~/.linuxbrew/bin
eval$(~/.linuxbrew/bin/brew shellenv)
- Type
brew search
for a list. - Or visitformulae.brew.shto browse packages online.
- Or use
brew search --desc <keyword>
to browse packages from the command line.
brew help
,man brew
or checkour documentation.
First, please runbrew update
andbrew doctor
.
Second, read theTroubleshooting Checklist.
If you don't read these it will take us far longer to help you with your problem.
We'd love you to contribute to Linuxbrew. First, please read ourContribution GuideandCode of Conduct.Please see ourguidelineson 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 runningbrew audit --strict
with some of the packages you use (e.g.brew audit --strict wget
if you usewget
) and then read through the warnings, try to fix them untilbrew audit --strict
shows no results andsubmit a pull request.If no formulae you use have warnings you can runbrew 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 labeledhelp wanted
inHomebrew/breworHomebrew/homebrew-core.
Good luck!
Please report security issues to ourHackerOne.
Linuxbrew's lead maintainer isShaun Jackman.
Linuxbrew/homebrew-core's lead maintainer isMichka Popoff.
Linuxbrew's other current maintainers arePiotr Gaczkowski,Maxim Belkin,Jonathan Chang,andAlyssa Ross.
Former Linuxbrew maintainers with significant contributions includeBob W. Hogg.
Homebrew's lead maintainer isMike McQuaid.
Homebrew's project leadership committee isMike McQuaid,Misty De MeoandMarkus Reiter.
Homebrew/brew's other current maintainers areClaudia Pellegrino,Michka Popoff,Shaun Jackman,Chongyu Zhu,Vitor Galvao,Misty De Meo,Gautham Goli,Markus Reiter,Steven Peters,Jonathan ChangandWilliam Woodruff.
Homebrew/brew's Linux support (and Linuxbrew) maintainers areMichka PopoffandShaun Jackman.
Homebrew/homebrew-core's other current maintainers areClaudia Pellegrino,Igor Kapkov,Michka Popoff,Shaun Jackman,Chongyu Zhu,Izaak Beekman,Sean Molenaar,Jan Viljanen,Jason Tedor,Viktor Szakats,FX Coudert,Thierry Moisan,Steven Peters,Misty De MeoandTom Schoonjans.
Former maintainers with significant contributions includeJCount,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,ilovezfsand Homebrew's creator:Max Howell.
Code is under theBSD 2-clause "Simplified" License. Documentation is under theCreative Commons Attribution license.
Linuxbrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for continuous integration and the computer resources used to build precompiled binary bottles of your favourite formulae. Every donation will be spent on making Linuxbrew better for our users.
Please considerdonating regularly to Linuxbrew through Patreon.We appreciate your support and contribution, no matter the level.
Linuxbrewis a fork ofHomebrew,the macOS package manager, for Linux. Please considerdonating to Homebrewas well if you use Homebrew on macOS.
Our binary packages (bottles) are built onCircleCIand hosted byBintray.