11 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	brew(1) -- The missing package manager for OS X
SYNOPSIS
brew [--verbose|-v] command [options] [formula] ...
brew [--version|-v]
DESCRIPTION
Homebrew is the easiest and most flexible way to install the UNIX tools Apple didn't include with OS X.
OPTIONS
- -v,- --verbosecommand [options] [formula] ...: Prints extra, command-specific debugging information. Note that- brew -vby itself is the same as- brew --version.
COMMANDS
- 
-v,--version: Print the version number of brew to standard error and exit.
- 
install [--force] [--debug] [--use-llvm] [--ignore-dependencies] [--HEAD]: Install .is usually the name of the formula to install, but may also be the URL for an arbitrary formula. If --forceis passed, will install even if it is already installed. This can be used to re-install a formula without removing it first.If --debugis passed and brewing fails, open a shell inside the temporary folder used for compiling.If --use-llvmis passed, attempt to compile using the LLVM front-end to GCC. NOTE: Not all formulae will build with LLVM.If --ignore-dependenciesis passed, skip installing any dependencies of any kind. If they are not already present, the formula will probably fail to install.If --HEADis passed, and defines it, install the HEAD version, aka master, trunk, unstable, dev.To install a newer version of HEAD use brew rm <foo> && brew install --HEAD <foo>orbrew install --force --HEAD <foo>.
- 
install --interactive [--git]: Download and patch , then open a shell. This allows the user to run./configure --helpand otherwise determine how to turn the software package into a Homebrew formula.If --gitis passed, Homebrew will create a Git repository, useful for creating patches to the software.
- 
search,-S|//: Perform a substring search of formula names for . If is surrounded with slashes, then it is interpreted as a regular expression. If no search term is given, all available formula are displayed.
- 
search --macports|--fink: Search for on the MacPorts or Fink package search page.
- 
update: Fetch the newest version of Homebrew from GitHub usinggit(1).
- 
list: List all installed formulae.
- 
list: List the installed files for .
- 
info: Display information about .
- 
info --github: Open a browser to the GitHub History page for formula .To view formula history locally: brew log -p <formula>.
- 
info: Print the name and version that will be detected for .
- 
home: Open Homebrew's own homepage in a browser.
- 
home: Open 's homepage in a browser.
- 
rm,remove,uninstall [--force]: Uninstall .If --forceis passed, and there are multiple versions of installed, delete all installed versions.
- 
create [--no-fetch]: Generate a formula for the downloadable file at and opens it in $EDITOR. 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.If --no-fetchis passed, Homebrew will not download to the cache and will thus not add the MD5 to the formula for you.
- 
edit: Open in $EDITOR.
- 
edit: Open all of Homebrew for editing in TextMate.
- 
ln,link: Symlink all of 's installed files into the Homebrew prefix. 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.
- 
unlink: Unsymlink from the Homebrew prefix. This can be useful for temporarily disabling a formula:brew unlink foo && commands && brew link foo.
- 
prune: Remove dead symlinks from the Homebrew prefix. This is generally not needed, but can be useful when doing DIY installations.
- 
outdated: Show formula that have an updated version available.
- 
deps [--1]: Show 's dependencies.If --1is passed, only show dependencies one level down, instead of recursing.
- 
uses [--installed]: Show the formulas that specify as a dependency. The list is not recursive; only one level of dependencies is resolved.If --installedis passed, only lists installed formulae.
- 
doctor: Check your system for potential problems.
- 
cat: Display the source to .
- 
cleanup [--force][]: For all installed or specific formulae, remove any older versions from the cellar. By default, does not remove out-of-date keg-only brews, as other software may link directly to specific versions.If --forceis passed, remove out-of-date keg-only brews as well.
- 
log [git-log-options]...: Show the git log for the given formulae. Options thatgit-log(1) recognizes can be passed before the formula list.
- 
fetch [--force] [-v] [--HEAD] [--deps]: Download the source packages for the given . For tarballs, also print MD5 and SHA1 checksums.If --HEADis passed, download the HEAD versions of instead.-vmay also be passed to make the VCS checkout verbose, useful for seeing if an existing HEAD cache has been updated.If --forceis passed, remove a previously cached version and re-fetch.If --depsis passed, also download dependencies for any listed .
- 
audit [--strict]: Check formulae for Homebrew coding style violations. This should be run before submitting a new formula for inclusion.If --strictis passed, perform additional stricter checks that may not need to be fixed before submitting.
- 
options [--compact] [--all]: Display install options specific to .If --compactis passed, show all options on a single line separated by spaces.If --allis passed, show options for all formulae.
- 
missing[]: Check the given for missing dependencies.If no are given, check all installed brews. 
- 
server: Start a local web app that lets you browse available formulae, similar togem server. Requiressinatra.
- 
test: A few formulae provide a test method.brew test <formula>runs this test method. There is no standard output or return code, but it should generally indicate to the user if something is wrong with the installed formula.Example: brew install jruby && brew test jruby
- 
man: Regenerate this man page usingronn. Seeman brew-manfor details.
- 
--config: Show Homebrew and system configuration useful for debugging. If you file a bug report, you will likely be asked for this information if you do not provide it.
- 
--prefix: Display Homebrew's install path. Default:/usr/local
- 
--prefix: Display the location in the cellar where is or would be installed.
- 
--cellar: Display Homebrew's Cellar path. Default:/usr/local/Cellar
- 
--cellar: Display the location in the cellar where would be installed, without any sort of versioned folder as the last path.
- 
--cache: Display Homebrew's download cache. Default:~/Library/Cache/Homebrew
- 
--cache: Display the file or folder used to cache .
- 
--repository: Display where Homebrew's.gitfolder is located. For standard installs, theprefixandrepositoryare the same folder.
EXTERNAL COMMANDS
Homebrew allows external commands to be defined by putting a +x file named
brew-<cmdname> or brew-<cmdname>.rb on the PATH. This will cause Homebrew
to recognize brew cmdname.
Some sample commands ship with Homebrew and are enabled by default.
$ ls `brew --repository`/Library/Contributions/examples
ENVIRONMENT
- 
HOMEBREW_DEBUG: If set, instructs Homebrew to always assume --debugwhen running commands.
- 
HOMEBREW_DEBUG_INSTALL: When brew install -dorbrew install -idrops into a shell,HOMEBREW_DEBUG_INSTALLwill be set to the name of the formula being brewed.
- 
HOMEBREW_DEBUG_PREFIX: When brew install -dorbrew install -idrops into a shell,HOMEBREW_DEBUG_PREFIXwill be set to the target prefix in the Cellar of the formula being brewed.
- 
HOMEBREW_EDITOR: If set, Homebrew will use this editor when editing a single formula, or several formulae in the same folder. NOTE: brew editwill open all of Homebrew as discontinuous files and folders. TextMate can handle this correctly in project mode, but many editors will do strange things in this case.
- 
HOMEBREW_KEEP_INFO: If set, Homebrew will not remove files from share/info, allowing them to be linked from the Cellar.
- 
HOMEBREW_SVN: When exporting from Subversion, Homebrew will use HOMEBREW_SVNif set, a Homebrew-built Subversion if installed, or the system-provided binary.Set this to force Homebrew to use a particular svn binary. 
- 
HOMEBREW_TEMP: If set, instructs Homebrew to use HOMEBREW_TEMPas the temporary folder for building packages. This may be needed if your system temp folder and Homebrew Prefix are on different volumes, as OS X has trouble moving symlinks across volumes when the target does not yet exist.This issue typically occurs when using FileVault or custom SSD configurations. 
- 
HOMEBREW_USE_GCC: If set, instructs Homebrew to use gcc, even if the system default is currently set to LLVM. 
- 
HOMEBREW_USE_LLVM: If set, instructs Homebrew to use the LLVM front-ends to the GCC compilers. NOTE: Not all formulae build correctly with LLVM. 
- 
HOMEBREW_VERBOSE: If set, instructs Homebrew to always assume --verbosewhen running commands.
USING HOMEBREW BEHIND A PROXY
Homebrew uses several commands for downloading files (e.g. curl, git, svn). Many of these tools can download via a proxy. It's common for these tools to read proxy parameters from environment variables.
For the majority of cases setting http_proxy is enough. You can set this in
your shell profile, or you can use it before a brew command:
http_proxy=http://<host>:<port> brew install foo
If your proxy requires authentication:
http_proxy=http://<user>:<password>@<host>:<port> brew install foo
SEE ALSO
Homebrew Wiki: http://wiki.github.com/mxcl/homebrew/
git(1), git-log(1)
AUTHORS
Max Howell, a splendid chap.
BUGS
See Issues on GitHub: http://github.com/mxcl/homebrew/issues
