forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 2
The brew command
mxcl edited this page Sep 13, 2010
·
62 revisions
Evenutally, you’ll be able to type “man brew”, but for now, this wiki entry may help you learn the ropes.
| Command | Consequence |
|---|---|
| brew search | Lists all formula that you can install |
| brew install foo | Installs foo |
| brew list | Lists all install formula |
| brew list foo | Lists the installed files for foo |
| brew info —github foo | Open your browser at the Github History page for formula foo |
| brew info | Summarises all installed Homebrew packages |
| brew info foo | Gives all available information for installed or not installed formula foo |
| brew home | Open’s Homebrew’s homepage in your default browser |
| brew home foo | Opens foo’s homepage in your default browser |
| brew remove foo | Uninstalls foo |
| brew create [url] | Generates a formula for the downloadable file at url and opens it in TextMate 1 |
| brew create —macports foo | Open your browser at the macports package search page, so you can see how they do foo |
| brew link foo | Symlinks all of foo’s installed files into the Homebrew prefix 2 |
| brew unlink foo | Unsymlinks foo from the Homebrew prefix |
| brew prune | Removes dead symlinks from the Homebrew prefix 3 |
1 Homebrew will attempt to automatically derive the formula name and version, if it fails, you’ll have to make your own template. I suggest copying wget’s.
2 This is done automatically when you install formula. It is useful for DIY installation, or in cases where you want to swap out different versions of the same package that you have installed at the same time.
3 This is generally not needed. However, it can be useful if you are doing DIY installations.