Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Alpine Linux

Anthony Underwood edited this page Sep 7, 2018 · 8 revisions

Install Linuxbrew on Alpine Linux

Start alpine docker image

docker run -it alpine /bin/sh

Install dependencies

apk update
apk add bash build-base curl file git gzip libc6-compat ncurses ruby ruby-dbm ruby-etc ruby-irb ruby-json sudo

Create a user

adduser -D -s /bin/bash linuxbrew
echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
su -l linuxbrew

Install Linuxbrew/brew

sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
PATH=$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH

Update Linuxbrew

brew update
brew doctor