2010-06-15 11:53:46 -07:00
|
|
|
brew(1) -- The missing package manager for OS X
|
|
|
|
===============================================
|
2010-06-03 22:29:20 -07:00
|
|
|
|
|
|
|
## SYNOPSIS
|
|
|
|
|
2012-07-23 14:27:50 -07:00
|
|
|
`brew` --version
|
2012-11-23 11:48:10 -08:00
|
|
|
`brew` command [--verbose|-v] [options] [formula] ...
|
2010-06-03 22:29:20 -07:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
|
|
|
|
Homebrew is the easiest and most flexible way to install the UNIX tools Apple
|
|
|
|
didn't include with OS X.
|
|
|
|
|
2011-05-30 21:34:42 -07:00
|
|
|
## ESSENTIAL COMMANDS
|
|
|
|
|
|
|
|
For the full command list, see the COMMANDS section.
|
|
|
|
|
2012-11-23 11:48:10 -08:00
|
|
|
With `--verbose`, many commands print extra debugging information.
|
|
|
|
|
2011-05-30 21:34:42 -07:00
|
|
|
* `install` <formula>:
|
|
|
|
Install <formula>.
|
|
|
|
|
|
|
|
* `remove` <formula>:
|
|
|
|
Uninstall <formula>.
|
|
|
|
|
|
|
|
* `update`:
|
|
|
|
Fetch the newest version of Homebrew from GitHub using `git`(1).
|
|
|
|
|
|
|
|
* `list`:
|
|
|
|
List all installed formulae.
|
|
|
|
|
|
|
|
* `search`, `-S` <text>|/<text>/:
|
|
|
|
Perform a substring search of formula names for <text>. If <text> is
|
|
|
|
surrounded with slashes, then it is interpreted as a regular expression.
|
|
|
|
If no search term is given, all available formula are displayed.
|
|
|
|
|
2010-06-03 22:29:20 -07:00
|
|
|
## COMMANDS
|
|
|
|
|
2011-11-27 00:14:52 -06:00
|
|
|
* `audit` [<formulae>]:
|
2011-05-31 12:20:06 -07:00
|
|
|
Check <formulae> for Homebrew coding style violations. This should be
|
|
|
|
run before submitting a new formula.
|
|
|
|
|
|
|
|
If no <formulae> are provided, all of them are checked.
|
|
|
|
|
|
|
|
`audit` exits with a non-zero status if any errors are found. This is useful,
|
|
|
|
for instance, for implementing pre-commit hooks.
|
|
|
|
|
|
|
|
* `cat` <formula>:
|
|
|
|
Display the source to <formula>.
|
|
|
|
|
2012-03-06 20:12:42 +00:00
|
|
|
* `cleanup [--force] [-ns]` [<formulae>]:
|
2011-05-31 12:20:06 -07:00
|
|
|
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
|
2012-03-06 20:12:42 +00:00
|
|
|
software may link directly to specific versions. In addition old downloads from
|
|
|
|
the Homebrew download-cache are deleted.
|
2011-05-31 12:20:06 -07:00
|
|
|
|
|
|
|
If `--force` is passed, remove out-of-date keg-only brews as well.
|
|
|
|
|
2011-11-07 22:46:36 -06:00
|
|
|
If `-n` is passed, show what would be removed, but do not actually remove anything.
|
|
|
|
|
2012-03-06 20:12:42 +00:00
|
|
|
If `-s` is passed, scrubs the cache, removing downloads for even the latest
|
|
|
|
versions of formula. Note downloads for any installed formula will still not be
|
|
|
|
deleted. If you want to delete those too: `rm -rf $(brew --cache)`
|
|
|
|
|
2012-11-13 16:50:19 -06:00
|
|
|
* `create [--autotools|--cmake] [--no-fetch] [--set-name <name>] [--set-version <version>]` <URL>:
|
2011-10-12 02:20:07 -05:00
|
|
|
Generate a formula for the downloadable file at <URL> and open it in
|
2011-12-16 20:26:21 -06:00
|
|
|
`EDITOR`. Homebrew will attempt to automatically derive the formula name
|
2011-10-12 02:20:07 -05:00
|
|
|
and version, but if it fails, you'll have to make your own template. The wget
|
|
|
|
formula serves as a simple example.
|
|
|
|
|
|
|
|
If `--autotools` is passed, create a basic template for an Autotools-style build.
|
|
|
|
If `--cmake` is passed, create a basic template for a CMake-style build.
|
2011-05-31 12:20:06 -07:00
|
|
|
|
|
|
|
If `--no-fetch` is passed, Homebrew will not download <URL> to the cache and
|
|
|
|
will thus not add the MD5 to the formula for you.
|
|
|
|
|
2012-11-13 16:50:19 -06:00
|
|
|
The options `--set-name` and `--set-version` each take an argument and allow
|
|
|
|
you to explicitly set the name and version of the package you are creating.
|
|
|
|
|
2011-11-27 22:40:59 -06:00
|
|
|
* `deps [--1] [-n] [--tree] [--all]` <formula>:
|
2011-05-31 12:20:06 -07:00
|
|
|
Show <formula>'s dependencies.
|
|
|
|
|
|
|
|
If `--1` is passed, only show dependencies one level down, instead of
|
|
|
|
recursing.
|
|
|
|
|
2011-10-12 02:20:07 -05:00
|
|
|
If `-n` is passed, show dependencies in topological order.
|
|
|
|
|
2011-11-27 22:40:59 -06:00
|
|
|
If `--tree` is passed, show dependencies as a tree.
|
|
|
|
|
2011-10-12 02:20:07 -05:00
|
|
|
If `--all` is passed, show dependencies for all formulae.
|
2011-06-15 09:02:18 -07:00
|
|
|
|
2012-11-13 16:50:19 -06:00
|
|
|
* `diy [--set-name <name>] [--set-version <version>]`:
|
2011-10-12 02:23:29 -05:00
|
|
|
Automatically determine the installation prefix for non-Homebrew software.
|
|
|
|
|
|
|
|
Using the output from this command, you can install your own software into
|
|
|
|
the Cellar and then link it into Homebrew's prefix with `brew link`.
|
|
|
|
|
|
|
|
The options `--set-name` and `--set-version` each take an argument and allow
|
|
|
|
you to explicitly set the name and version of the package you are installing.
|
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `doctor`:
|
2011-10-12 02:20:07 -05:00
|
|
|
Check your system for potential problems. Doctor exits with a non-zero status
|
|
|
|
if any problems are found.
|
2011-05-31 12:20:06 -07:00
|
|
|
|
|
|
|
* `edit`:
|
2011-12-16 14:27:58 -08:00
|
|
|
Open all of Homebrew for editing.
|
2011-05-31 12:20:06 -07:00
|
|
|
|
|
|
|
* `edit` <formula>:
|
2011-12-16 20:26:21 -06:00
|
|
|
Open <formula> in `EDITOR`.
|
2011-05-31 12:20:06 -07:00
|
|
|
|
|
|
|
* `fetch [--force] [-v] [--HEAD] [--deps]` <formulae>:
|
|
|
|
Download the source packages for the given <formulae>.
|
|
|
|
For tarballs, also print MD5 and SHA1 checksums.
|
|
|
|
|
|
|
|
If `--HEAD` is passed, download the HEAD versions of <formulae> instead. `-v`
|
|
|
|
may also be passed to make the VCS checkout verbose, useful for seeing if
|
|
|
|
an existing HEAD cache has been updated.
|
|
|
|
|
|
|
|
If `--force` is passed, remove a previously cached version and re-fetch.
|
|
|
|
|
|
|
|
If `--deps` is passed, also download dependencies for any listed <formulae>.
|
|
|
|
|
|
|
|
* `home`:
|
|
|
|
Open Homebrew's own homepage in a browser.
|
|
|
|
|
|
|
|
* `home` <formula>:
|
|
|
|
Open <formula>'s homepage in a browser.
|
|
|
|
|
2011-10-12 02:20:07 -05:00
|
|
|
* `info [--all]` <formula>:
|
2011-05-31 12:20:06 -07:00
|
|
|
Display information about <formula>.
|
|
|
|
|
2011-10-12 02:20:07 -05:00
|
|
|
If `--all` is passed, show info for all formulae.
|
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `info --github` <formula>:
|
|
|
|
Open a browser to the GitHub History page for formula <formula>.
|
|
|
|
|
|
|
|
To view formula history locally: `brew log -p <formula>`.
|
|
|
|
|
|
|
|
* `info` <URL>:
|
|
|
|
Print the name and version that will be detected for <URL>.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2011-11-28 14:37:16 -06:00
|
|
|
* `install [--force] [--debug] [--ignore-dependencies] [--fresh] [--use-clang] [--use-gcc] [--use-llvm] [--build-from-source] [--devel] [--HEAD]` <formula>:
|
2010-11-06 14:18:15 -07:00
|
|
|
Install <formula>.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2012-03-25 15:54:38 -05:00
|
|
|
<formula> is usually the name of the formula to install, but it can be specified
|
|
|
|
several different ways. See [SPECIFYING FORMULAE][].
|
2010-10-30 12:30:22 -07:00
|
|
|
|
2012-03-18 16:00:48 -05:00
|
|
|
If `--force` is passed, will install <formula> if it exists, even if it
|
|
|
|
is blacklisted.
|
2010-09-16 09:56:59 -07:00
|
|
|
|
2010-11-06 14:18:15 -07:00
|
|
|
If `--debug` is passed and brewing fails, open a shell inside the
|
2012-02-24 19:49:03 -06:00
|
|
|
temporary directory used for compiling.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2010-06-15 11:53:46 -07:00
|
|
|
If `--ignore-dependencies` is passed, skip installing any dependencies of
|
2010-08-11 21:10:51 -07:00
|
|
|
any kind. If they are not already present, the formula will probably fail
|
|
|
|
to install.
|
2010-06-15 11:53:46 -07:00
|
|
|
|
2011-11-14 10:44:18 -08:00
|
|
|
If `--fresh` is passed, the installation process will not re-use any
|
|
|
|
options from previous installs.
|
|
|
|
|
2011-06-16 20:50:40 -07:00
|
|
|
If `--use-clang` is passed, attempt to compile using clang.
|
2011-05-04 21:36:49 -05:00
|
|
|
|
|
|
|
If `--use-gcc` is passed, attempt to compile using GCC. This is useful for
|
|
|
|
systems whose default compiler is LLVM-GCC.
|
|
|
|
|
2011-06-16 20:50:40 -07:00
|
|
|
If `--use-llvm` is passed, attempt to compile using the LLVM front-end to GCC.
|
|
|
|
*NOTE*: Not all formulae will build with LLVM.
|
|
|
|
|
2011-08-24 21:13:34 -05:00
|
|
|
If `--build-from-source` is passed, compile from source even if a bottle
|
|
|
|
is provided for <formula>.
|
|
|
|
|
2011-11-28 14:37:16 -06:00
|
|
|
If `--devel` is passed, and <formula> defines it, install the development version.
|
|
|
|
|
2010-07-09 12:13:17 -07:00
|
|
|
If `--HEAD` is passed, and <formula> defines it, install the HEAD version,
|
2011-11-28 14:37:16 -06:00
|
|
|
aka master, trunk, unstable.
|
2010-07-09 12:13:17 -07:00
|
|
|
|
2010-10-13 06:43:04 -07:00
|
|
|
To install a newer version of HEAD use
|
|
|
|
`brew rm <foo> && brew install --HEAD <foo>`
|
2010-12-26 10:31:10 -08:00
|
|
|
or `brew install --force --HEAD <foo>`.
|
2010-10-13 06:43:04 -07:00
|
|
|
|
2010-06-03 22:29:20 -07:00
|
|
|
* `install --interactive [--git]` <formula>:
|
2010-11-06 14:18:15 -07:00
|
|
|
Download and patch <formula>, then open a shell. This allows the user to
|
|
|
|
run `./configure --help` and otherwise determine how to turn the software
|
|
|
|
package into a Homebrew formula.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
|
|
|
If `--git` is passed, Homebrew will create a Git repository, useful for
|
|
|
|
creating patches to the software.
|
|
|
|
|
2012-10-20 20:54:11 -05:00
|
|
|
* `ln`, `link [--overwrite] [--dry-run]` <formula>:
|
2010-11-06 14:18:15 -07:00
|
|
|
Symlink all of <formula>'s installed files into the Homebrew prefix. This
|
2011-06-05 21:29:52 -07:00
|
|
|
is done automatically when you install formula, but can be useful for DIY
|
|
|
|
installations.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2012-10-20 20:54:11 -05:00
|
|
|
If `--overwrite` is passed, Homebrew will delete files which already exist in
|
2012-06-17 16:54:20 -05:00
|
|
|
the prefix while linking.
|
|
|
|
|
|
|
|
If `--dry-run` or `-n` is passed, Homebrew will list all files which would
|
2012-10-20 20:54:11 -05:00
|
|
|
be linked or which would be deleted by `brew link --overwrite`, but will not
|
|
|
|
actually link or delete any files.
|
2012-06-17 16:54:20 -05:00
|
|
|
|
2011-10-12 02:20:07 -05:00
|
|
|
* `ls, list [--unbrewed] [--versions]` [<formulae>]:
|
2011-09-08 21:06:50 -05:00
|
|
|
Without any arguments, list all installed formulae.
|
|
|
|
|
|
|
|
If <formulae> are given, list the installed files for <formulae>.
|
2011-10-12 02:20:07 -05:00
|
|
|
Combined with `--verbose`, recursively list the contents of all subdirectories
|
|
|
|
in each <formula>'s keg.
|
|
|
|
|
|
|
|
If `--unbrewed` is passed, list all files in the Homebrew prefix not installed
|
|
|
|
by Homebrew.
|
2011-04-18 21:11:08 -07:00
|
|
|
|
2011-09-08 21:06:50 -05:00
|
|
|
If `--versions` is passed, show the version number for installed formulae,
|
|
|
|
or only the specified formulae if <formulae> are given.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2010-11-06 14:18:15 -07:00
|
|
|
* `log [git-log-options]` <formula> ...:
|
|
|
|
Show the git log for the given formulae. Options that `git-log`(1)
|
2010-10-04 17:12:34 -07:00
|
|
|
recognizes can be passed before the formula list.
|
|
|
|
|
2012-01-05 21:44:24 -06:00
|
|
|
* `missing` [<formulae>]:
|
2011-10-12 02:25:18 -05:00
|
|
|
Check the given <formulae> for missing dependencies.
|
|
|
|
|
|
|
|
If no <formulae> are given, check all installed brews.
|
|
|
|
|
2011-09-11 16:23:39 -05:00
|
|
|
* `options [--compact] [--all] [--installed]` <formula>:
|
2010-11-07 07:36:34 -08:00
|
|
|
Display install options specific to <formula>.
|
|
|
|
|
2011-02-04 16:56:46 -08:00
|
|
|
If `--compact` is passed, show all options on a single line separated by
|
|
|
|
spaces.
|
|
|
|
|
2011-03-21 13:14:06 -07:00
|
|
|
If `--all` is passed, show options for all formulae.
|
2011-09-11 16:23:39 -05:00
|
|
|
|
|
|
|
If `--installed` is passed, show options for all installed formulae.
|
2011-03-21 13:14:06 -07:00
|
|
|
|
2011-09-01 22:49:04 -05:00
|
|
|
* `outdated [--quiet]`:
|
|
|
|
Show formulae that have an updated version available.
|
|
|
|
|
|
|
|
If `--quiet` is passed, list only the names of outdated brews. Otherwise,
|
|
|
|
the versions are printed as well.
|
2011-04-13 13:48:09 -07:00
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `prune`:
|
|
|
|
Remove dead symlinks from the Homebrew prefix. This is generally not
|
|
|
|
needed, but can be useful when doing DIY installations.
|
|
|
|
|
|
|
|
* `rm`, `remove`, `uninstall [--force]` <formula>:
|
|
|
|
Uninstall <formula>.
|
|
|
|
|
|
|
|
If `--force` is passed, and there are multiple versions of <formula>
|
|
|
|
installed, delete all installed versions.
|
|
|
|
|
|
|
|
* `search`, `-S` <text>|/<text>/:
|
|
|
|
Perform a substring search of formula names for <text>. If <text> 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` <text>:
|
|
|
|
Search for <text> on the MacPorts or Fink package search page.
|
2010-11-07 07:36:34 -08:00
|
|
|
|
2012-03-18 16:02:31 -05:00
|
|
|
* `tap` [<tap>]:
|
|
|
|
Tap a new formula repository from GitHub, or list existing taps.
|
|
|
|
|
|
|
|
<tap> is of the form <user>/<repo>, e.g. `brew tap homebrew/dupes`.
|
|
|
|
|
2012-08-07 13:26:57 -04:00
|
|
|
* `tap --repair`:
|
|
|
|
|
|
|
|
Ensures all tapped formula are symlinked into Library/Formula and prunes dead
|
|
|
|
formula from Library/Formula.
|
|
|
|
|
2010-11-07 07:36:34 -08:00
|
|
|
* `test` <formula>:
|
|
|
|
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`
|
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `unlink` <formula>:
|
|
|
|
Unsymlink <formula> from the Homebrew prefix. This can be useful for
|
|
|
|
temporarily disabling a formula: `brew unlink foo && commands && brew link foo`.
|
2010-11-07 07:36:34 -08:00
|
|
|
|
2012-03-18 16:02:31 -05:00
|
|
|
* `untap` <tap>:
|
|
|
|
Remove a tapped repository.
|
|
|
|
|
2011-09-20 02:25:50 +01:00
|
|
|
* `update [--rebase]`:
|
|
|
|
Fetch the newest version of Homebrew and all formulae from GitHub using
|
|
|
|
`git`(1).
|
|
|
|
|
2011-09-19 20:47:25 -05:00
|
|
|
If `--rebase` is specified then `git pull --rebase` is used.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
2011-09-01 22:49:41 -05:00
|
|
|
* `upgrade` [<formulae>]:
|
|
|
|
Upgrade outdated brews.
|
|
|
|
|
|
|
|
If <formulae> are given, upgrade only the specified brews.
|
|
|
|
|
2012-11-13 16:50:19 -06:00
|
|
|
* `uses [--installed] [--recursive]` <formula>:
|
|
|
|
Show the formulas that specify <formula> as a dependency.
|
|
|
|
|
|
|
|
Use `--recursive` to resolve more than one level of dependencies.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
2011-10-12 02:20:07 -05:00
|
|
|
If `--installed` is passed, only list installed formulae.
|
2011-05-31 12:20:06 -07:00
|
|
|
|
2012-01-06 14:35:48 -06:00
|
|
|
* `versions [--compact]` <formulae>:
|
2011-08-24 21:13:34 -05:00
|
|
|
List previous versions of <formulae>, along with a command to checkout
|
|
|
|
each version.
|
|
|
|
|
2012-01-06 14:35:48 -06:00
|
|
|
If `--compact` is passed, show all options on a single line separated by
|
|
|
|
spaces.
|
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `--cache`:
|
2011-09-06 23:04:35 -07:00
|
|
|
Display Homebrew's download cache. *Default:* `~/Library/Caches/Homebrew`
|
2011-05-31 12:20:06 -07:00
|
|
|
|
|
|
|
* `--cache` <formula>:
|
2012-02-24 19:49:03 -06:00
|
|
|
Display the file or directory used to cache <formula>.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
|
|
|
* `--cellar`:
|
|
|
|
Display Homebrew's Cellar path. *Default:* `/usr/local/Cellar`
|
|
|
|
|
2010-12-26 10:31:10 -08:00
|
|
|
* `--cellar` <formula>:
|
2010-11-06 14:18:15 -07:00
|
|
|
Display the location in the cellar where <formula> would be installed,
|
2012-02-24 19:49:03 -06:00
|
|
|
without any sort of versioned directory as the last path.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `--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.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
2011-05-31 12:20:06 -07:00
|
|
|
* `--prefix`:
|
|
|
|
Display Homebrew's install path. *Default:* `/usr/local`
|
|
|
|
|
|
|
|
* `--prefix` <formula>:
|
|
|
|
Display the location in the cellar where <formula> is or would be installed.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
|
|
|
* `--repository`:
|
2012-02-24 19:49:03 -06:00
|
|
|
Display where Homebrew's `.git` directory is located. For standard installs,
|
|
|
|
the `prefix` and `repository` are the same directory.
|
2010-11-06 14:18:15 -07:00
|
|
|
|
2012-07-23 14:27:50 -07:00
|
|
|
* `--version`:
|
2011-05-31 12:20:06 -07:00
|
|
|
Print the version number of brew to standard error and exit.
|
|
|
|
|
2010-07-29 09:24:38 -07:00
|
|
|
## EXTERNAL COMMANDS
|
|
|
|
|
2011-09-19 18:20:52 -05:00
|
|
|
Homebrew, like `git`(1), supports external commands. These are executable
|
|
|
|
scripts that reside somewhere in the PATH, named `brew-<cmdname>` or
|
|
|
|
`brew-<cmdname>.rb`, which can be invoked like `brew cmdname`. This allows you
|
|
|
|
to create your own commands without modifying Homebrew's internals.
|
2010-07-29 09:24:38 -07:00
|
|
|
|
2012-03-18 15:33:21 +13:00
|
|
|
A number of (useful, but unsupported) external commands are included and enabled
|
2011-09-19 18:20:52 -05:00
|
|
|
by default:
|
2010-09-08 05:27:09 -07:00
|
|
|
|
2012-03-18 15:33:21 +13:00
|
|
|
$ ls `brew --repository`/Library/Contributions/cmds
|
2010-08-20 10:18:03 -07:00
|
|
|
|
2011-09-19 18:20:52 -05:00
|
|
|
Documentation for the included external commands as well as instructions for
|
|
|
|
creating your own can be found on the wiki:
|
|
|
|
<http://wiki.github.com/mxcl/homebrew/External-Commands>
|
|
|
|
|
2012-03-25 15:54:38 -05:00
|
|
|
## SPECIFYING FORMULAE
|
|
|
|
|
|
|
|
Many Homebrew commands accept one or more <formula> arguments. These arguments
|
|
|
|
can take several different forms:
|
|
|
|
|
|
|
|
* The name of a formula:
|
|
|
|
e.g. `git`, `node`, `wget`.
|
|
|
|
|
|
|
|
* The fully-qualified name of a tapped formula:
|
|
|
|
Sometimes a formula from a tapped repository may conflict with one in mxcl/master.
|
|
|
|
You can still access these formulae by using a special syntax, e.g.
|
|
|
|
`homebrew/dupes/vim` or `homebrew/versions/node4`.
|
|
|
|
|
|
|
|
* An arbitrary URL:
|
|
|
|
Homebrew can install formulae via URL, e.g.
|
|
|
|
`https://raw.github.com/mxcl/homebrew/master/Library/Formula/git.rb`.
|
|
|
|
The formula file will be cached for later use.
|
|
|
|
|
2010-06-03 22:29:20 -07:00
|
|
|
## ENVIRONMENT
|
|
|
|
|
2013-01-06 17:32:23 -08:00
|
|
|
* BROWSER:
|
|
|
|
If set, and `HOMEBREW_BROWSER` is not, use `BROWSER` as the web browser
|
|
|
|
when opening project homepages.
|
|
|
|
|
|
|
|
* EDITOR:
|
|
|
|
If set, and `HOMEBREW_EDITOR` is not, use `EDITOR` as the text editor.
|
|
|
|
|
2012-08-10 11:33:41 -07:00
|
|
|
* GIT:
|
|
|
|
When using Git, Homebrew will use `GIT` if set,
|
|
|
|
a Homebrew-built Git if installed, or the system-provided binary.
|
|
|
|
|
|
|
|
Set this to force Homebrew to use a particular git binary.
|
|
|
|
|
2013-01-06 17:32:23 -08:00
|
|
|
* HOMEBREW_BROWSER:
|
|
|
|
If set, uses this setting as the browser when opening project homepages,
|
|
|
|
instead of the OS default browser.
|
2012-08-10 11:33:41 -07:00
|
|
|
|
2011-08-25 00:08:30 -05:00
|
|
|
* HOMEBREW\_BUILD\_FROM\_SOURCE:
|
|
|
|
If set, instructs Homebrew to compile from source even when a formula
|
|
|
|
provides a bottle.
|
|
|
|
|
2011-06-07 13:37:59 -07:00
|
|
|
* HOMEBREW\_CACHE:
|
2013-01-06 17:32:23 -08:00
|
|
|
If set, instructs Homebrew to use the given directory as the download cache.
|
2011-06-07 13:37:59 -07:00
|
|
|
Otherwise, `~/Library/Caches/Homebrew` is used.
|
|
|
|
|
2012-02-24 19:49:03 -06:00
|
|
|
This can be used to keep downloads out of your home directory, if you have
|
2011-10-04 14:01:42 -07:00
|
|
|
it mounted on an SSD or are using FileVault for instance.
|
2011-06-07 13:37:59 -07:00
|
|
|
|
2011-12-07 19:09:00 -06:00
|
|
|
* HOMEBREW\_CURL\_VERBOSE:
|
|
|
|
If set, Homebrew will pass `--verbose` when invoking `curl`(1).
|
|
|
|
|
2010-06-03 22:29:20 -07:00
|
|
|
* HOMEBREW\_DEBUG:
|
2013-01-06 17:32:23 -08:00
|
|
|
If set, Homebrew always assumes `--debug` when running commands.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2010-08-16 09:22:14 -07:00
|
|
|
* HOMEBREW\_DEBUG\_INSTALL:
|
2010-08-20 10:06:06 -07:00
|
|
|
When `brew install -d` or `brew install -i` drops into a shell,
|
2010-08-16 09:22:14 -07:00
|
|
|
`HOMEBREW_DEBUG_INSTALL` will be set to the name of the formula being
|
2010-08-20 10:06:06 -07:00
|
|
|
brewed.
|
|
|
|
|
|
|
|
* HOMEBREW\_DEBUG\_PREFIX:
|
|
|
|
When `brew install -d` or `brew install -i` drops into a shell,
|
2010-11-06 14:18:15 -07:00
|
|
|
`HOMEBREW_DEBUG_PREFIX` will be set to the target prefix in the Cellar
|
2010-08-20 10:06:06 -07:00
|
|
|
of the formula being brewed.
|
2010-08-16 09:22:14 -07:00
|
|
|
|
2012-12-31 17:51:57 +00:00
|
|
|
* HOMEBREW\_DEVELOPER:
|
|
|
|
If set, Homebrew will print warnings that are only relevant to Homebrew
|
|
|
|
developers (active or budding).
|
|
|
|
|
2010-07-25 10:56:32 -07:00
|
|
|
* HOMEBREW\_EDITOR:
|
|
|
|
If set, Homebrew will use this editor when editing a single formula, or
|
2012-02-24 19:49:03 -06:00
|
|
|
several formulae in the same directory.
|
2010-07-25 10:56:32 -07:00
|
|
|
|
|
|
|
*NOTE*: `brew edit` will open all of Homebrew as discontinuous files and
|
2012-02-24 19:49:03 -06:00
|
|
|
directories. TextMate can handle this correctly in project mode, but many
|
2010-07-25 10:56:32 -07:00
|
|
|
editors will do strange things in this case.
|
|
|
|
|
2010-08-21 11:24:58 -07:00
|
|
|
* HOMEBREW\_KEEP\_INFO:
|
2010-11-06 14:18:15 -07:00
|
|
|
If set, Homebrew will not remove files from `share/info`, allowing them
|
2012-01-21 00:51:20 +01:00
|
|
|
to be linked from the Cellar. To access these info files, prepend
|
|
|
|
`share/info` to your `INFOPATH` environment variable.
|
|
|
|
|
|
|
|
*Example:* `export INFOPATH='/usr/local/share/info:/usr/share/info'`
|
2010-08-21 11:24:58 -07:00
|
|
|
|
2011-07-26 00:01:22 -05:00
|
|
|
* HOMEBREW\_MAKE\_JOBS:
|
|
|
|
If set, instructs Homebrew to use the value of `HOMEBREW_MAKE_JOBS` as
|
|
|
|
the number of parallel jobs to run when building with `make`(1).
|
|
|
|
|
|
|
|
*Default:* the number of available CPU cores.
|
|
|
|
|
2013-01-19 17:28:55 -06:00
|
|
|
* HOMEBREW\_NO\_EMOJI:
|
|
|
|
If set, Homebrew will not print the beer emoji on a successful build.
|
|
|
|
|
|
|
|
*Note:* Homebrew will only try to print emoji on Lion or newer.
|
|
|
|
|
2010-07-09 12:13:17 -07:00
|
|
|
* HOMEBREW\_SVN:
|
|
|
|
When exporting from Subversion, Homebrew will use `HOMEBREW_SVN` if set,
|
|
|
|
a Homebrew-built Subversion if installed, or the system-provided binary.
|
|
|
|
|
|
|
|
Set this to force Homebrew to use a particular svn binary.
|
|
|
|
|
2010-05-01 14:06:23 -07:00
|
|
|
* HOMEBREW\_TEMP:
|
2012-02-24 19:49:03 -06:00
|
|
|
If set, instructs Homebrew to use `HOMEBREW_TEMP` as the temporary directory
|
|
|
|
for building packages. This may be needed if your system temp directory and
|
2010-05-01 14:06:23 -07:00
|
|
|
Homebrew Prefix are on different volumes, as OS X has trouble moving
|
|
|
|
symlinks across volumes when the target does not yet exist.
|
|
|
|
|
2010-11-06 14:18:15 -07:00
|
|
|
This issue typically occurs when using FileVault or custom SSD
|
|
|
|
configurations.
|
2010-05-01 14:06:23 -07:00
|
|
|
|
2011-06-16 20:50:40 -07:00
|
|
|
* HOMEBREW\_USE\_CLANG:
|
2013-01-06 17:32:23 -08:00
|
|
|
If set, forces Homebrew to compile using clang.
|
2011-06-16 20:50:40 -07:00
|
|
|
|
2010-10-01 20:56:55 +01:00
|
|
|
* HOMEBREW\_USE\_GCC:
|
2013-01-06 17:32:23 -08:00
|
|
|
If set, forces Homebrew to compile using gcc.
|
2010-10-01 20:56:55 +01:00
|
|
|
|
2010-06-03 22:29:20 -07:00
|
|
|
* HOMEBREW\_USE\_LLVM:
|
2013-01-06 17:32:23 -08:00
|
|
|
If set, forces Homebrew to compile using LLVM.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
|
|
|
* HOMEBREW\_VERBOSE:
|
2013-01-06 17:32:23 -08:00
|
|
|
If set, Homebrew always assumes `--verbose` when running commands.
|
2010-06-03 22:29:20 -07:00
|
|
|
|
2010-11-01 10:24:57 -07:00
|
|
|
## 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
|
|
|
|
|
2010-06-03 22:29:20 -07:00
|
|
|
## SEE ALSO
|
|
|
|
|
2010-11-06 14:18:15 -07:00
|
|
|
Homebrew Wiki: <http://wiki.github.com/mxcl/homebrew/>
|
|
|
|
|
|
|
|
`git`(1), `git-log`(1)
|
2010-06-03 22:29:20 -07:00
|
|
|
|
|
|
|
## AUTHORS
|
|
|
|
|
|
|
|
Max Howell, a splendid chap.
|
|
|
|
|
|
|
|
## BUGS
|
|
|
|
|
2010-11-06 14:18:15 -07:00
|
|
|
See Issues on GitHub: <http://github.com/mxcl/homebrew/issues>
|
2010-11-07 07:36:34 -08:00
|
|
|
|