![For For](/uploads/1/2/6/5/126565816/701166106.jpg)
The Missing Package Manager for macOS (or Linux). It's all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates. Documentation for the missing package manager for macOS.
The Homebrew package manager may be used on Linux and Windows Subsystem for Linux (WSL). Homebrew was formerly referred to as Linuxbrew when running on Linux or WSL. It can be installed in your home directory, in which case it does not use sudo. Homebrew does not use any libraries provided by your host system, except glibc and gcc if they are new enough. Homebrew can install its own current versions of glibc and gcc for older distributions of Linux.
Features, installation instructions and requirements are described below. Terminology (e.g. the difference between a Cellar, Tap, Cask and so forth) is explained in the documentation.
Features
- Can install software to your home directory and so does not require sudo
- 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
Install
Instructions for a supported install of Homebrew on Linux are on the homepage.
The installation script installs Homebrew to
/home/linuxbrew/.linuxbrew
using sudo if possible and in your home directory at ~/.linuxbrew
otherwise. Homebrew does not use sudo after installation. Using /home/linuxbrew/.linuxbrew
allows the use of more binary packages (bottles) than installing in your personal home directory.Follow the Next steps instructions to add Homebrew to your
PATH
and to your bash shell profile script, either ~/.profile
on Debian/Ubuntu or ~/.bash_profile
on CentOS/Fedora/RedHat.You’re done! Try installing a package:
If you’re using an older distribution of Linux, installing your first package will also install a recent version of glibc and gcc. Use
brew doctor
to troubleshoot common issues.Requirements
- GCC 4.7.0 or newer
- Linux 2.6.32 or newer
- Glibc 2.13 or newer
- 64-bit x86_64 CPU
Paste at a terminal prompt:
Debian or Ubuntu
![Brew install macos-trash Brew install macos-trash](/uploads/1/2/6/5/126565816/881164123.png)
Fedora, CentOS, or Red Hat
ARM
Homebrew can run on 32-bit ARM (Raspberry Pi and others) and 64-bit ARM (AArch64), but no binary packages (bottles) are available. Support for ARM is on a best-effort basis. Pull requests are welcome to improve the experience on ARM platforms.
You may need to install your own Ruby using your system package manager, a PPA, or
rbenv/ruby-build
as we no longer distribute a Homebrew Portable Ruby for ARM.32-bit x86
Homebrew does not currently support 32-bit x86 platforms. It would be possible for Homebrew 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.
Alternative Installation
Extract or
git clone
Homebrew wherever you want. Use /home/linuxbrew/.linuxbrew
if possible (to enable the use of binary packages).Homebrew on Linux Community
- Homebrew on Linux category of Homebrew’s Discourse
Sponsors
Brew.sh For Macos 10
Our binary packages (bottles) are built on GitHub Actions and hosted by Bintray.
Brew.sh For Macos Download
Install Homebrew
Paste that in a macOS Terminal or Linux shell prompt.The script explains what it will do and then pauses before it does it. Read about other installation options.What Does Homebrew Do?
Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.- Homebrew installs packages to their own directory and then symlinks their files into
/usr/local
. - Homebrew won’t install files outside its prefix and you can place a Homebrew installation wherever you like.
- It's all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.
- Homebrew complements macOS (or your Linux system). Install your RubyGems with
gem
and their dependencies withbrew
. - 'To install, drag this icon...' no more.
brew cask
installs macOS apps, fonts and plugins and other non-open source software. Donate to Homebrew
Homebrew Blog
Analytics Data
- Homebrew was created by Max Howell. Website by Rémi Prévost, Mike McQuaid and Danielle Lalonde.