Skip to content

Instantly share code, notes, and snippets.

@emilefraser
Last active June 12, 2017 01:49
Show Gist options
  • Save emilefraser/1a5e0d2864dee7f2fdb2e06a6291d66a to your computer and use it in GitHub Desktop.
Save emilefraser/1a5e0d2864dee7f2fdb2e06a6291d66a to your computer and use it in GitHub Desktop.
[Homebrew Setup] #installer #homebrew #install
# install
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install wget
# Homebrew installs packages to their own directory and then symlinks their files into /usr/local.
$ cd /usr/local
$ find Cellar
Cellar/wget/1.16.1
Cellar/wget/1.16.1/bin/wget
Cellar/wget/1.16.1/share/man/man1/wget.1
$ ls -l bin
bin/wget -> ../Cellar/wget/1.16.1/bin/wget
# Troubleshooting
# First, please run brew update (twice) and brew doctor.
brew edit $FORMULA
brew help, man brew
# If Homebrew was updated on Aug 10-11th 2016 and brew update always says
# Already up-to-date. you need to run:
cd "$(brew --repo)" && git fetch && git reset --hard origin/master && brew update
# troubleshoot
brew update #(twice)
Run brew doctor
# installing
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment