How to Deal with Homebrew 6.0 Asking y/N on Upgrade

How to handle Homebrew 6.0's new interactive upgrade confirmation prompts

From Homebrew 6.0 onwards, running brew upgrade or brew install asks you to confirm whether to continue. Copy ==> This action will upgrade X formulae. Proceed? [y/N] Until now it went ahead automatically, so I imagine many people were caught off guard. In this article I summarize the ways to deal with it depending on the situation. Dealing with it on the spot If you do not need to change any settings in particular, all you do is type y and press Enter when the prompt appears. [Read More]