How to edit a Homebrew formulae


This post goes over how to edit a Homebrew formulae.

Upgrade

Upgrade formulae <formulae> to get the latest upstream:

brew upgrade <formulae>

If the formulae is up-to-date, you’ll get the output:

Warning: <formulae> already installed

Edit

Edit the formulae:

brew edit <formulae>

To edit the formulae with a different EDITOR like nano:

EDITOR=nano brew edit <formulae>

Then install the edited formulae:

brew upgrade <formulae>


Please support this site and join our Discord!