Create a step-by-step guide for using BrewUI to manage software packages on macOS, including: 1) installation instructions, 2) how to discover and install new packages, 3) managing package updates, 4) configuring Homebrew environment variables through the GUI, and 5) troubleshooting common issues. Provide both the user workflow and the underlying Homebrew commands that BrewUI executes for each step.