Before you start
Formulae commonly install command-line tools and libraries, while casks commonly install GUI applications and other macOS artifacts. Both are managed by Homebrew, but their installation behavior differs.
Steps
When a name is ambiguous, explicitly select --formula or --cask. Inspect brew info first to confirm the exact package and source.
brew search firefox
brew info --cask firefox
brew install --cask firefoxUsing Casklane
Casklane shows your Homebrew library and package details in a native Mac interface. Review the package and operation output before confirming a change. Homebrew itself still performs package operations.