I need Linuxbrew for a certain application, and how can I acquire Linuxbrew?


2 Answers 2


It is not in the Raspbian package repository, you can verify this with:

sudo apt-cache search linuxbrew.

This is not surprising as this is a non standard way of installing packages on Linux (It is a port of Homebrew from Mac OS).

You can install from source:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install)" 

Edit your


and add


to your PATH:

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

reload your .bash_profile

source ~/.bash_profile

full instructions are available here.

  • There are some dependencies in those instructions that you'll want to address before running that ruby script. Also, since you're enabling binaries installed with user privileges, it would be better to have the Linuxbrew path at the end of your PATH: export PATH="$PATH:$HOME/.linuxbrew/bin"
    – scruss
    Feb 20, 2017 at 22:38
  • @scruss agreed, but those instructions come right from the linuxbrew site. I would add that the better method would be to avoid a third party repo and curling raw code. for security reasons. It would be better to find the package or files needed in one of the standard repos or build it from source. This would at least limit the amount of code that needs to be run and maintained outside the normal apt process. Also, the instructions fom Linuxbrew also modify the PATH via .bash_profile rather than the more standard .bashrc. Feb 20, 2017 at 22:44

It is but you won't be able to use it as they move to the a ruby version for 64 bits...

Install it via linuxbrew-wrapper:

sudo apt-get install linuxbrew-wrapper

Execute brew and you'll get


For the convenience of using linuxbrew it is recommended to update the
following environment variables after installing linuxbrew.


Set HOMEBREW_BOTTLE_DOMAIN environment variable if you prefer some
homebrew mirror as your upstream.

(example: /usr/share/doc/linuxbrew-wrapper/examples/profile)
==> This script will install:

Press RETURN to continue or any other key to abort

After pressing return linux brew will be downloaded and installed.

Anyway, you'll get next error:

==> Pouring portable-ruby-2.3.3_2.armv6_linux.bottle.tar.gz
Error: Failed to install vendor ruby.
Error: Failed to install vendor Ruby.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.