diff --git a/Library/Homebrew/cmd/uninstall.rb b/Library/Homebrew/cmd/uninstall.rb index 504ee99835..d4a64c5055 100644 --- a/Library/Homebrew/cmd/uninstall.rb +++ b/Library/Homebrew/cmd/uninstall.rb @@ -1,8 +1,11 @@ -#: * `uninstall`, `rm`, `remove` [`--force`] : +#: * `uninstall`, `rm`, `remove` [`--force`] [`--ignore-dependencies`] : #: Uninstall . #: #: If `--force` is passed, and there are multiple versions of #: installed, delete all installed versions. +#: +#: If `--ignore-dependencies` is passed, uninstalling won't fail, even if +#: formulae depending on would still be installed. require "keg" require "formula" diff --git a/docs/brew.1.html b/docs/brew.1.html index bb8775cebe..0f5bf034a2 100644 --- a/docs/brew.1.html +++ b/docs/brew.1.html @@ -245,8 +245,11 @@ packages.

If --force is passed, then treat installed formulae and passed formulae like if they are from same taps and migrate them anyway.

-
missing [formulae]

Check the given formulae for missing dependencies. If no formulae are -given, check all installed brews.

+
missing [--hide=hidden] [formulae]

Check the given formulae for missing dependencies. If no formulae are +given, check all installed brews.

+ +

If --hide=hidden is passed, act as if none of hidden are installed. +hidden should be a comma-seperated list of formulae.

options [--compact] (--all|--installed|formulae)

Display install options specific to formulae.

If --compact is passed, show all options on a single line separated by @@ -348,10 +351,13 @@ for version is v1.

tap-pin tap

Pin tap, prioritizing its formulae over core when formula names are supplied by the user. See also tap-unpin.

tap-unpin tap

Unpin tap so its formulae are no longer prioritized. See also tap-pin.

-
uninstall, rm, remove [--force] formula

Uninstall formula.

+
uninstall, rm, remove [--force] [--ignore-dependencies] formula

Uninstall formula.

If --force is passed, and there are multiple versions of formula -installed, delete all installed versions.

+installed, delete all installed versions.

+ +

If --ignore-dependencies is passed, uninstalling won't fail, even if +formulae depending on formula would still be installed.

unlink [--dry-run] formula

Remove symlinks for formula from the Homebrew prefix. This can be useful for temporarily disabling a formula: brew unlink foo && commands && brew link foo.

diff --git a/manpages/brew.1 b/manpages/brew.1 index c74969aee7..0b547aac22 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -329,9 +329,12 @@ Migrate renamed packages to new name, where \fIformulae\fR are old names of pack If \fB\-\-force\fR is passed, then treat installed \fIformulae\fR and passed \fIformulae\fR like if they are from same taps and migrate them anyway\. . .TP -\fBmissing\fR [\fIformulae\fR] +\fBmissing\fR [\fB\-\-hide=\fR\fIhidden\fR] [\fIformulae\fR] Check the given \fIformulae\fR for missing dependencies\. If no \fIformulae\fR are given, check all installed brews\. . +.IP +If \fB\-\-hide=\fR\fIhidden\fR is passed, act as if none of \fIhidden\fR are installed\. \fIhidden\fR should be a comma\-seperated list of formulae\. +. .TP \fBoptions\fR [\fB\-\-compact\fR] (\fB\-\-all\fR|\fB\-\-installed\fR|\fIformulae\fR) Display install options specific to \fIformulae\fR\. @@ -484,12 +487,15 @@ Pin \fItap\fR, prioritizing its formulae over core when formula names are suppli Unpin \fItap\fR so its formulae are no longer prioritized\. See also \fBtap\-pin\fR\. . .TP -\fBuninstall\fR, \fBrm\fR, \fBremove\fR [\fB\-\-force\fR] \fIformula\fR +\fBuninstall\fR, \fBrm\fR, \fBremove\fR [\fB\-\-force\fR] [\fB\-\-ignore\-dependencies\fR] \fIformula\fR Uninstall \fIformula\fR\. . .IP If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR installed, delete all installed versions\. . +.IP +If \fB\-\-ignore\-dependencies\fR is passed, uninstalling won\'t fail, even if formulae depending on \fIformula\fR would still be installed\. +. .TP \fBunlink\fR [\fB\-\-dry\-run\fR] \fIformula\fR Remove symlinks for \fIformula\fR from the Homebrew prefix\. This can be useful for temporarily disabling a formula: \fBbrew unlink foo && commands && brew link foo\fR\.