
Add a new mode "brew audit --warn" that performs stricter checks that might not need to be fixed. Currently this includes a check for using tabs instead of spaces for indentation; Homebrew style is "2-space indentation." Documented this new switch.
9.5 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
,--verbose
command [options] [formula] ...: Prints extra, comand-specific debugging information. Note thatbrew -v
by itself is the same asbrew --version
.
COMMANDS
-
-v
,--version
: Prints the version number of brew to standard error and exits. -
--prefix
[]: Displays the install path for Homebrew. If is given, display location in the cellar where that package is or would be installed. -
--cache
[]: Displays the path Homebrew uses to cache downloads. If is given, display the file or folder used to cache that specific package. -
--config
: Shows 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. -
-S
,search
|//: Performs 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. -
install [--force] [--debug] [--use-llvm] [--ignore-dependencies] [--HEAD]
: Installs .If
--force
is passed, will install even if it is already installed. This can be used to re-install a formula without removing it first.If
--debug
is passed and brewing fails, opens a shell inside the temporary folder used for compiling.If
--use-llvm
is passed, attempt to compile using the LLVM front-end to GCC. NOTE: Not all formulae will build with LLVM.If
--ignore-dependencies
is passed, skip installing any dependencies of any kind. If they are not already present, the formula will probably fail to install.If
--HEAD
is 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 --force --HEAD <foo>
. -
install --interactive [--git]
: Downloads and patches , and then opens a shell. This allows the user to run./configure --help
and otherwise determine how to turn the software package into a Homebrew formula.If
--git
is passed, Homebrew will create a Git repository, useful for creating patches to the software. -
list
: Lists all installed formulae. -
list
: Lists the installed files for . -
info
: Gives all available information for . -
info --github
: Opens a browser to the GitHub History page for formula . -
info --all
: Summarises all installed packages; this is intended to be used by higher-level tools. -
info
: Prints the name and version that will be detected for ; only http:// URLs supported for now. -
home
: Opens a browser to Homebrew's own homepage. -
home
: Opens a browser to 's homepage. -
rm
,remove [--force]
: Uninstalls .If
--force
is passed, and there are multiple versions of installed, deletes all installed versions. -
create [--cache]
: Generates 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
--cache
is passed, Homebrew will download the to the cache and add the MD5 to the formula for you. -
create --macports
|--fink
: Opens a browser to the MacPorts or Fink package search page, so you can see how they do . -
edit
: Opens the formula in $EDITOR. -
edit
: Opens all of Homebrew for editing in TextMate. -
ln
,link
: Symlinks 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
: Unsymlinks from the Homebrew prefix. -
prune
: Removes dead symlinks from the Homebrew prefix. This is generally not needed. However, it can be useful if you are doing DIY installations. -
outdated
: Shows formula that have an updated version available. -
deps [--1]
: Shows 's dependencies.If
--1
is passed, only show dependencies one level down, instead of recursing. -
uses [--installed]
: Shows the formulas that specify as a dependency. The list is not recursive; only one level of dependencies is resolved.If
--installed
is passed, only lists installed formulae. -
doctor
: Checks your system for potential problems. -
cat
: Displays the source to . -
cleanup
[]: For all installed or specific formulae, remove any older versions from the cellar. -
update
: Using Git, fetches the newest version of Homebrew from the GitHub repository. -
log [git-options]
...: Shows the git log for the given formulae. Options thatgit log
recognizes can be passed before the formula list. -
fetch [--force] [-v] [--HEAD]
: Downloads the tarball or checks out from VCS for the given . For tarballs, also prints MD5 and SHA1 checksums.If
--HEAD
is passed, download the HEAD version of 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.
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 external commands are shipped with Homebrew, and enabled by default.
-
audit [--warn]
: Checks all formulae for Homebrew coding style violations. This should be run before submitting a new formula for inclusion.If
--warn
is passed, performs additional stricter checks that may not need to be fixed before submitting. -
options
: Displays install options specific to . -
man
: Regenerates this man page from source.NOTE: Requires
ronn
. -
missing
: Checks all installed formuale for missing dependencies. -
server
: Starts a local webserver with an app that lets you browse available formulae, similar togem server
.NOTE: Requires
sinatra
. -
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
ENVIRONMENT
-
HOMEBREW_DEBUG: If set, instructs Homebrew to always assume
--debug
when running commands. -
HOMEBREW_DEBUG_INSTALL: When
brew install -d
orbrew 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
orbrew 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_EDITOR: If set, Homebrew will use this editor when editing a single formula, or several formulae in the same folder.
NOTE:
brew edit
will 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_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 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 certain custom SSD configurations.)
-
HOMEBREW_USE_LLVM: If set, instructs Homebrew to use the LLVM front-ends to the GCC compilers.
NOTE: Not all formulae will build correctly under LLVM.
-
HOMEBREW_VERBOSE: If set, instructs Homebrew to always assume
--verbose
when running commands.
SEE ALSO
Homebrew Wiki: http://wiki.github.com/mxcl/homebrew/
AUTHORS
Max Howell, a splendid chap.
BUGS
See Issues on GitHub: http://github.com/mxcl/homebrew/issues