Update FAQ entry: Homebrew automatic brew cleanup behavior change
This commit is contained in:
parent
895467ad9f
commit
d8caacde95
20
docs/FAQ.md
20
docs/FAQ.md
@ -29,8 +29,14 @@ 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.
|
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?
|
## How do I uninstall old versions of a formula?
|
||||||
By default, Homebrew does not uninstall old versions of a formula, so
|
Before `v1.9.0`, Homebrew did not uninstall old versions of a formula, so
|
||||||
over time you will accumulate old versions. To remove them, simply use:
|
over time you will accumulate old versions.
|
||||||
|
After `v1.9.0`, Homebrew introduced optional automatic cleanup via
|
||||||
|
the `HOMEBREW_INSTALL_CLEANUP` environment variable.
|
||||||
|
After `v2.0.0`, Homebrew's default behavior changed to automatically
|
||||||
|
uninstall old versions of a formula every 30 days.
|
||||||
|
|
||||||
|
To remove them manually, simply use:
|
||||||
|
|
||||||
brew cleanup <formula>
|
brew cleanup <formula>
|
||||||
|
|
||||||
@ -42,6 +48,16 @@ or to see what would be cleaned up:
|
|||||||
|
|
||||||
brew cleanup -n
|
brew cleanup -n
|
||||||
|
|
||||||
|
or to __enable__ automatic `brew cleanup` for Homebrew `>= v1.9.0`, `<= 2.0.0`:
|
||||||
|
|
||||||
|
# Add this line to your ~/.bashrc or ~/.bash_profile
|
||||||
|
export HOMEBREW_INSTALL_CLEANUP=1
|
||||||
|
|
||||||
|
or to __disable__ automatic `brew cleanup` for Homebrew `>= v2.0.0`:
|
||||||
|
|
||||||
|
# Add this line to your ~/.bashrc or ~/.bash_profile
|
||||||
|
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
||||||
|
|
||||||
## How do I uninstall Homebrew?
|
## How do I uninstall Homebrew?
|
||||||
To uninstall Homebrew, paste the command below in a terminal prompt.
|
To uninstall Homebrew, paste the command below in a terminal prompt.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user