| 
									
										
										
										
											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`. | 
					
						
							|  |  |  | %> | 
					
						
							| 
									
										
										
										
											2019-12-17 21:38:16 +00:00
										 |  |  | brew(1) -- The Missing Package Manager for macOS | 
					
						
							| 
									
										
										
										
											2018-10-25 09:24:00 -04: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 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-04 11:12:56 +01:00
										 |  |  | For the full command list, see the [COMMANDS](#commands) section. | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-19 22:44:50 -04:00
										 |  |  | With `--verbose` or `--debug`, many commands print extra debugging information. Note that | 
					
						
							| 
									
										
										
										
											2019-08-20 00:04:14 -04:00
										 |  |  | these options should only appear after a command. | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | ### `install` <formula>: | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | Install <formula>. | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-09 14:23:04 -04:00
										 |  |  | <formula> is usually the name of the formula to install, but it has other syntaxes which | 
					
						
							|  |  |  | are listed in the [SPECIFYING FORMULAE](#specifying-formulae) section. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | ### `uninstall` <formula>: | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | Uninstall <formula>. | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | ### `list`: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | List all installed formulae. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ### `search` (<text>|`/`<text>`/`): | 
					
						
							| 
									
										
										
										
											2019-08-06 13:23:19 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | Perform a substring search of cask tokens and formula names for <text>. If <text> | 
					
						
							| 
									
										
										
										
											2019-08-20 00:04:14 -04:00
										 |  |  | is flanked by slashes, it is interpreted as a regular expression. | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | The search for <text> is extended online to `homebrew/core` and `homebrew/cask`. | 
					
						
							| 
									
										
										
										
											2019-08-20 00:04:14 -04:00
										 |  |  | If no search term is provided, all locally available formulae are listed. | 
					
						
							| 
									
										
										
										
											2016-04-17 05:33:21 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | <%= commands %> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-09-05 21:46:40 +01:00
										 |  |  | ## DEVELOPER COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | <%= developer_commands %> | 
					
						
							| 
									
										
										
										
											2016-09-05 21:46:40 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-02 14:44:38 +05:30
										 |  |  | ## GLOBAL OPTIONS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-01-30 21:33:55 +00:00
										 |  |  | <%= global_options %> | 
					
						
							| 
									
										
										
										
											2018-10-02 14:44:38 +05:30
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-10-02 18:21:04 +01:00
										 |  |  | ## OFFICIAL EXTERNAL COMMANDS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-03-11 12:22:46 +00:00
										 |  |  | <%= official_external_commands %> | 
					
						
							| 
									
										
										
										
											2016-10-02 18:21:04 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## 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: | 
					
						
							| 
									
										
										
										
											2018-02-22 19:46:58 +00:00
										 |  |  | <https://docs.brew.sh/External-Commands> | 
					
						
							| 
									
										
										
										
											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`. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-05-29 17:04:42 +01:00
										 |  |  |   * An arbitrary file: | 
					
						
							|  |  |  |     Homebrew can install formulae from a local path. It can point to either a | 
					
						
							|  |  |  |     formula file or a bottle. | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-01 02:30:46 +02:00
										 |  |  | ## SPECIFYING CASKS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Many Homebrew Cask commands accept one or more <cask> arguments. These can be | 
					
						
							|  |  |  | specified the same way as the <formula> arguments described in | 
					
						
							|  |  |  | `SPECIFYING FORMULAE` above. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | ## ENVIRONMENT | 
					
						
							| 
									
										
										
										
											2018-10-25 09:24:00 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-20 00:04:14 -04:00
										 |  |  | Note that environment variables must have a value set to be detected. For example, run | 
					
						
							| 
									
										
										
										
											2018-12-03 21:23:06 -05:00
										 |  |  | `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just | 
					
						
							|  |  |  | `export HOMEBREW_NO_INSECURE_REDIRECT`. | 
					
						
							| 
									
										
										
										
											2018-04-07 10:10:24 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-06 10:11:34 +01:00
										 |  |  | <%= environment_variables %> | 
					
						
							| 
									
										
										
										
											2017-12-19 10:59:04 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-30 14:05:06 +00:00
										 |  |  | ## USING HOMEBREW BEHIND A PROXY | 
					
						
							| 
									
										
										
										
											2017-12-19 10:59:04 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-03 21:23:06 -05:00
										 |  |  | Set the `http_proxy`, `https_proxy`, `all_proxy`, `ftp_proxy` and/or `no_proxy` | 
					
						
							|  |  |  | environment variables documented above. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | For example, to use an unauthenticated HTTP or SOCKS5 proxy: | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-06 00:31:10 -04:00
										 |  |  |     export http_proxy=http://$HOST:$PORT | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-06 00:31:10 -04:00
										 |  |  |     export all_proxy=socks5://$HOST:$PORT | 
					
						
							| 
									
										
										
										
											2018-02-01 18:11:29 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-11-30 14:05:06 +00:00
										 |  |  | And for an authenticated HTTP proxy: | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-06 00:31:10 -04:00
										 |  |  |     export http_proxy=http://$USER:$PASSWORD@$HOST:$PORT | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## SEE ALSO | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-07-27 15:59:37 +01:00
										 |  |  | Homebrew Documentation: <https://docs.brew.sh> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-20 02:14:09 -04:00
										 |  |  | Homebrew API: <https://rubydoc.brew.sh> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-14 05:31:32 +02:00
										 |  |  | `git`(1), `git-log`(1) | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## AUTHORS | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 17:09:31 +01:00
										 |  |  | <%= lead.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2016-09-20 09:31:06 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 17:09:31 +01:00
										 |  |  | <%= plc.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2018-08-02 13:26:02 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 17:09:31 +01:00
										 |  |  | <%= tsc.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2018-01-18 15:45:51 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 17:09:31 +01:00
										 |  |  | <%= linux.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2018-08-07 10:51:16 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 17:09:31 +01:00
										 |  |  | <%= maintainers.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-04 17:09:31 +01:00
										 |  |  | <%= alumni.concat("\n") %> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## BUGS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | See our issues on GitHub: | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-02 21:56:00 -04:00
										 |  |  |   * **Homebrew/brew**: | 
					
						
							|  |  |  |     <https://github.com/Homebrew/brew/issues> | 
					
						
							| 
									
										
										
										
											2016-04-08 16:28:35 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-02 21:56:00 -04:00
										 |  |  |   * **Homebrew/homebrew-core**: | 
					
						
							|  |  |  |     <https://github.com/Homebrew/homebrew-core/issues> | 
					
						
							| 
									
										
										
										
											2020-08-01 02:30:46 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   * **Homebrew/homebrew-cask**: | 
					
						
							|  |  |  |     <https://github.com/Homebrew/homebrew-cask/issues> |