Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Locate Homebrew Repository on Mac OSX

Tags:

homebrew

I'm trying to follow the instructions listed here for updating Homebrew. Part of the instructions says:

Simply type in the following: cd $(brew –repository) && git commit -a -m ‘new ruby version 2.0′

How do I find where my brew repository is?

like image 410
Adam_G Avatar asked Oct 23 '25 16:10

Adam_G


1 Answers

Homebrew's repository is usually in /usr/local. I think the trouble you're having comes from copying and pasting the text directly from that blog -- it's supposed to be

cd $(brew --repository) && git commit -a -m 'new ruby version 2.0'

but the blog engine "helpfully" replaced -- with , an n dash. (I would have expected it to make it an m dash, but that's beside the point.)

Type that line in verbatim and you should be fine. Or you could replace the $(brew --repository) part with /usr/local if you installed Homebrew in the default way.

like image 51
echristopherson Avatar answered Oct 26 '25 14:10

echristopherson