Merge pull request #6278 from trinitronx/update-faq-automatic-cleanup

Update FAQ entry: Homebrew automatic `brew cleanup` behavior change
This commit is contained in:
Mike McQuaid 2019-07-28 15:42:22 +01:00 committed by GitHub
commit 777aef502d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,9 @@ To allow that formulae to update again:
Note that pinned, outdated formulae that another formula depends on need to be upgraded when required as we do not allow formulae to be built against non-latest versions.
## How do I uninstall old versions of a formula?
By default, Homebrew does not uninstall old versions of a formula, so
over time you will accumulate old versions. To remove them, simply use:
Homebrew's default behaviour automatically uninstalls old versions of a formula every 30 days.
To remove them manually, simply use:
brew cleanup <formula>
@ -42,6 +43,10 @@ or to see what would be cleaned up:
brew cleanup -n
or to __disable__ automatic `brew cleanup`:
export HOMEBREW_NO_INSTALL_CLEANUP=1
## How do I uninstall Homebrew?
To uninstall Homebrew, paste the command below in a terminal prompt.