| 
									
										
										
										
											2016-04-17 05:34:41 +02:00
										 |  |  | <% | 
					
						
							|  |  |  | # To make changes to this man page: | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # - For changes to a specific command (appears in the `COMMANDS` section): | 
					
						
							|  |  |  | #   - Edit the top comment in `Library/Homebrew/cmd/<command>.{rb,sh}`. | 
					
						
							|  |  |  | #   - Make sure to use the line prefix `#:` for the comments to be recognized as | 
					
						
							|  |  |  | #     documentation. If in doubt, compare with already documented commands. | 
					
						
							|  |  |  | # - For other changes: Edit this file. | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # When done, regenerate the man page and its HTML version by running `brew man`. | 
					
						
							|  |  |  | %> | 
					
						
							| 
									
										
										
										
											2016-09-18 19:57:19 +01:00
										 |  |  | brew(1) -- The missing package manager for macOS | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | =============================================== | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | ## SYNOPSIS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | `brew` `--version`<br> | 
					
						
							|  |  |  | `brew` <command> [`--verbose`|`-v`] [<options>] [<formula>] ... | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## DESCRIPTION | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Homebrew is the easiest and most flexible way to install the UNIX tools Apple | 
					
						
							| 
									
										
										
										
											2016-09-18 19:57:19 +01:00
										 |  |  | didn't include with macOS. | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## ESSENTIAL COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | For the full command list, see the [COMMANDS][] section. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | With `--verbose` or `-v`, many commands print extra debugging information. Note that these flags should only appear after a command. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `install` <formula>: | 
					
						
							|  |  |  |     Install <formula>. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-11 14:19:56 -08:00
										 |  |  |   * `uninstall` <formula>: | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  |     Uninstall <formula>. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `update`: | 
					
						
							|  |  |  |     Fetch the newest version of Homebrew from GitHub using `git`(1). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `list`: | 
					
						
							|  |  |  |     List all installed formulae. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `search` <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. | 
					
						
							|  |  |  |     The search for <text> is extended online to some popular taps. | 
					
						
							|  |  |  |     If no search term is given, all locally available formulae are listed. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%= commands.join("\n") %> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-05 21:46:40 +01:00
										 |  |  | ## DEVELOPER COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <%= developer_commands.join("\n") %> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-02 18:21:04 +01:00
										 |  |  | ## OFFICIAL EXTERNAL COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `bundle`: | 
					
						
							|  |  |  |     Bundler for non-Ruby dependencies from Homebrew: | 
					
						
							|  |  |  |     <https://github.com/Homebrew/homebrew-bundle> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `cask`: | 
					
						
							|  |  |  |     Install macOS applications distributed as binaries: | 
					
						
							|  |  |  |     <https://github.com/caskroom/homebrew-cask> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `services`: | 
					
						
							|  |  |  |     Integrates Homebrew formulae with macOS's `launchctl` manager: | 
					
						
							|  |  |  |     <https://github.com/Homebrew/homebrew-services> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## CUSTOM EXTERNAL COMMANDS | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02: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. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Instructions for creating your own commands can be found in the docs: | 
					
						
							| 
									
										
										
										
											2017-01-04 11:13:41 +00:00
										 |  |  | <http://docs.brew.sh/External-Commands.html> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02: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: | 
					
						
							| 
									
										
										
										
											2016-05-01 15:00:09 +02:00
										 |  |  |     Sometimes a formula from a tapped repository may conflict with one in | 
					
						
							|  |  |  |     `homebrew/core`. | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  |     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/Homebrew/homebrew-core/master/Formula/git.rb`. | 
					
						
							|  |  |  |     The formula file will be cached for later use. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## ENVIRONMENT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`: | 
					
						
							|  |  |  |     When using the `S3` download strategy, Homebrew will look in | 
					
						
							|  |  |  |     these variables for access credentials (see | 
					
						
							|  |  |  |     <https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-environment> | 
					
						
							|  |  |  |     to retrieve these access credentials from AWS).  If they are not set, | 
					
						
							|  |  |  |     the `S3` download strategy will download with a public | 
					
						
							|  |  |  |     (unsigned) URL. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `BROWSER`: | 
					
						
							|  |  |  |     If set, and `HOMEBREW_BROWSER` is not, use `BROWSER` as the web browser | 
					
						
							|  |  |  |     when opening project homepages. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `EDITOR`: | 
					
						
							|  |  |  |     If set, and `HOMEBREW_EDITOR` and `VISUAL` are not, use `EDITOR` as the text editor. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `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. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_BOTTLE_DOMAIN`: | 
					
						
							|  |  |  |     If set, instructs Homebrew to use the given URL as a download mirror for bottles. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-13 11:43:43 +01:00
										 |  |  |   * `HOMEBREW_ARTIFACT_DOMAIN`: | 
					
						
							|  |  |  |     If set, instructs Homebrew to use the given URL as a download mirror for bottles and binaries. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-10 15:46:31 +01:00
										 |  |  |   * `HOMEBREW_AUTO_UPDATE_SECS`: | 
					
						
							|  |  |  |     If set, Homebrew will only check for autoupdates once per this seconds interval. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     *Default:* `60`. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  |   * `HOMEBREW_BROWSER`: | 
					
						
							|  |  |  |     If set, uses this setting as the browser when opening project homepages, | 
					
						
							|  |  |  |     instead of the OS default browser. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_BUILD_FROM_SOURCE`: | 
					
						
							|  |  |  |     If set, instructs Homebrew to compile from source even when a formula | 
					
						
							|  |  |  |     provides a bottle. This environment variable is intended for use by | 
					
						
							|  |  |  |     Homebrew developers. Please do not file issues if you encounter errors when | 
					
						
							|  |  |  |     using this environment variable. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_CACHE`: | 
					
						
							|  |  |  |     If set, instructs Homebrew to use the given directory as the download cache. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-06-01 08:46:33 +01:00
										 |  |  |     *Default:* `~/Library/Caches/Homebrew`. | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_CURL_VERBOSE`: | 
					
						
							|  |  |  |     If set, Homebrew will pass `--verbose` when invoking `curl`(1). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_DEBUG`: | 
					
						
							|  |  |  |     If set, any commands that can emit debugging information will do so. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_DEBUG_INSTALL`: | 
					
						
							|  |  |  |     When `brew install -d` or `brew install -i` drops into a shell, | 
					
						
							|  |  |  |     `HOMEBREW_DEBUG_INSTALL` will be set to the name of the formula being | 
					
						
							|  |  |  |     brewed. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_DEBUG_PREFIX`: | 
					
						
							|  |  |  |     When `brew install -d` or `brew install -i` drops into a shell, | 
					
						
							|  |  |  |     `HOMEBREW_DEBUG_PREFIX` will be set to the target prefix in the Cellar | 
					
						
							|  |  |  |     of the formula being brewed. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_DEVELOPER`: | 
					
						
							| 
									
										
										
										
											2016-08-16 12:24:10 +01:00
										 |  |  |     If set, Homebrew will tweak behaviour to be more relevant for Homebrew | 
					
						
							|  |  |  |     developers (active or budding) e.g. turning warnings into errors. | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_EDITOR`: | 
					
						
							|  |  |  |     If set, Homebrew will use this editor when editing a single formula, or | 
					
						
							|  |  |  |     several formulae in the same directory. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-12 12:17:56 +01:00
										 |  |  |     *Note:* `brew edit` will open all of Homebrew as discontinuous files and | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  |     directories. TextMate can handle this correctly in project mode, but many | 
					
						
							|  |  |  |     editors will do strange things in this case. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-10 20:06:14 +01:00
										 |  |  |   * `HOMEBREW_FORCE_VENDOR_RUBY`: | 
					
						
							|  |  |  |     If set, Homebrew will always use its vendored, relocatable Ruby 2.0 version | 
					
						
							|  |  |  |     even if the system version of Ruby is >=2.0. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  |   * `HOMEBREW_GITHUB_API_TOKEN`: | 
					
						
							|  |  |  |     A personal access token for the GitHub API, which you can create at | 
					
						
							|  |  |  |     <https://github.com/settings/tokens>. If set, GitHub will allow you a | 
					
						
							|  |  |  |     greater number of API requests. See | 
					
						
							|  |  |  |     <https://developer.github.com/v3/#rate-limiting> for more information. | 
					
						
							|  |  |  |     Homebrew uses the GitHub API for features such as `brew search`. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-12 12:17:56 +01:00
										 |  |  |     *Note:* Homebrew doesn't require permissions for any of the scopes. | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_LOGS`: | 
					
						
							|  |  |  |     If set, Homebrew will use the given directory to store log files. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `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. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-12 12:17:56 +01:00
										 |  |  |   * `HOMEBREW_NO_ANALYTICS`: | 
					
						
							| 
									
										
										
										
											2017-01-04 11:13:41 +00:00
										 |  |  |     If set, Homebrew will not send analytics. See: <http://docs.brew.sh/Analytics.html> | 
					
						
							| 
									
										
										
										
											2016-04-12 12:17:56 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-08-10 15:46:31 +01:00
										 |  |  |   * `HOMEBREW_NO_AUTO_UPDATE`: | 
					
						
							| 
									
										
										
										
											2016-08-27 15:57:09 +01:00
										 |  |  |     If set, Homebrew will not auto-update before running `brew install`, | 
					
						
							|  |  |  |     `brew upgrade` or `brew tap`. | 
					
						
							| 
									
										
										
										
											2016-08-10 15:46:31 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  |   * `HOMEBREW_NO_EMOJI`: | 
					
						
							|  |  |  |     If set, Homebrew will not print the `HOMEBREW_INSTALL_BADGE` on a | 
					
						
							|  |  |  |     successful build. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     *Note:* Homebrew will only try to print emoji on Lion or newer. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_NO_INSECURE_REDIRECT`: | 
					
						
							|  |  |  |     If set, Homebrew will not permit redirects from secure HTTPS | 
					
						
							|  |  |  |     to insecure HTTP. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     While ensuring your downloads are fully secure, this is likely | 
					
						
							| 
									
										
										
										
											2016-06-22 19:56:10 +02:00
										 |  |  |     to cause from-source Sourceforge, some GNU & GNOME based | 
					
						
							|  |  |  |     formulae to fail to download. | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_NO_GITHUB_API`: | 
					
						
							|  |  |  |     If set, Homebrew will not use the GitHub API for e.g searches or | 
					
						
							|  |  |  |     fetching relevant issues on a failed install. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_INSTALL_BADGE`: | 
					
						
							|  |  |  |     Text printed before the installation summary of each successful build. | 
					
						
							|  |  |  |     Defaults to the beer emoji. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `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. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_TEMP`: | 
					
						
							|  |  |  |     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 | 
					
						
							| 
									
										
										
										
											2016-09-18 19:57:19 +01:00
										 |  |  |     Homebrew Prefix are on different volumes, as macOS has trouble moving | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  |     symlinks across volumes when the target does not yet exist. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     This issue typically occurs when using FileVault or custom SSD | 
					
						
							|  |  |  |     configurations. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `HOMEBREW_VERBOSE`: | 
					
						
							|  |  |  |     If set, Homebrew always assumes `--verbose` when running commands. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   * `VISUAL`: | 
					
						
							|  |  |  |     If set, and `HOMEBREW_EDITOR` is not, use `VISUAL` as the text editor. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## 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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-19 20:20:08 +01:00
										 |  |  | Homebrew Documentation: <https://github.com/Homebrew/brew/blob/master/docs/> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-02 18:21:04 +01:00
										 |  |  | `brew-cask`(1), `git`(1), `git-log`(1) | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## AUTHORS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-20 11:50:02 +02:00
										 |  |  | <%= lead_maintainer.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2016-09-20 09:31:06 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-20 11:50:02 +02:00
										 |  |  | <%= maintainers.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-20 11:50:02 +02:00
										 |  |  | <%= former_maintainers.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## BUGS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | See our issues on GitHub: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  * Homebrew/brew <https://github.com/Homebrew/brew/issues> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |  * Homebrew/homebrew-core <https://github.com/Homebrew/homebrew-core/issues> |