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

New Maintainer

Shaun Jackman edited this page Jun 20, 2017 · 3 revisions

Install Linuxbrew

Clone linuxbrew/brew

mkdir -p ~/.linuxbrew/bin
git clone https://github.com/Linuxbrew/brew ~/.linuxbrew/Homebrew
ln -s ../Homebrew/bin/brew ~/.linuxbrew/bin/
alias linuxbrew=~/.linuxbrew/bin/brew

Tap linuxbrew/core and linuxbrew/developer

brew install hub
git config --global hub.protocol https
mkdir -p $(linuxbrew --repo homebrew/core)
cd $(linuxbrew --repo homebrew/core)
hub clone Linuxbrew/homebrew-core .
hub remote add homebrew
hub fork
linuxbrew tap linuxbrew/developer

Merge homebrew/core

Determine the first bottle updated in Homebrew that is not yet in Linuxbrew. Merge that commit into Linuxbrew/core.

cd $(linuxbrew --repo homebrew/core)
git fetch homebrew
git log --oneline master..homebrew/master | grep 'bottle\.$' | tail
sha1=$(git log --oneline master..homebrew/master | grep 'bottle\.$' | tail -n1 | cut -d' ' -f1)
linuxbrew merge-homebrew --core $sha1