Skip to content

Instantly share code, notes, and snippets.

@PankajWorks
Created January 14, 2016 11:01
Show Gist options
  • Save PankajWorks/a9fba7074b246e274018 to your computer and use it in GitHub Desktop.
Save PankajWorks/a9fba7074b246e274018 to your computer and use it in GitHub Desktop.
yum update -y
yum groupinstall -y "Development Tools"
yum install -y \
autoconf automake19 libtool gettext \
git scons cmake flex bison \
libcurl-devel curl \
ncurses-devel ruby bzip2-devel expat-devel \
irb
yum install -y git-all
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew
# Set your git token for HOMEBREW using
# https://github.com/settings/tokens/new?scopes=&description=Homebrew
# export HOMEBREW_GITHUB_API_TOKEN=<token>
#Add the following lines to the end of the user's ~/.bashrc file:
# Until LinuxBrew is fixed, the following is required.
# See: https://github.com/Homebrew/linuxbrew/issues/47
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH
## Setup linux brew
export LINUXBREWHOME=$HOME/.linuxbrew
export PATH=$LINUXBREWHOME/bin:$PATH
export MANPATH=$LINUXBREWHOME/man:$MANPATH
export PKG_CONFIG_PATH=$LINUXBREWHOME/lib64/pkgconfig:$LINUXBREWHOME/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LINUXBREWHOME/lib64:$LINUXBREWHOME/lib:$LD_LIBRARY_PATH
# What packages are installed
brew search
#Install a package
brew install PACKAGE
# Added existing homebrew repositories
# brew tap homebrew/games
# List available taps
brew tap
# More informtion at https://github.com/Homebrew/homebrew/wiki
# https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook
# https://github.com/Homebrew/homebrew/wiki/troubleshooting
# https://github.com/Homebrew/linuxbrew
# https://github.com/Homebrew/linuxbrew/issues?state=open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment