From bf3b12656d68dd8d80665359446b6f9a8cc34aaf Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Fri, 26 Nov 2021 18:11:35 +0800 Subject: [PATCH] FAQ: document `HOMEBREW_NO_CLEANUP_FORMULAE` --- docs/FAQ.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index 15b08e60b0..efbf38d589 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -41,6 +41,10 @@ To __disable__ automatic `brew cleanup`: export HOMEBREW_NO_INSTALL_CLEANUP=1 +To disable automatic `brew cleanup` only for formulae `foo` and `bar`: + + export HOMEBREW_NO_CLEANUP_FORMULAE=foo,bar + When automatic `brew cleanup` is disabled, if you uninstall a formula, it will only remove the latest version you have installed. It will not remove all versions of the formula that you may have installed in the past. Homebrew will continue to attempt to install the newest version it knows about when you run `brew upgrade`. This can be surprising. In this case, to remove a formula entirely, you may run `brew uninstall --force `. Be careful as this is a destructive operation.