Recently I upgraded to macOS Mojave and I found that after my upgrade that Homebrew was no longer installed but did that mean the packages were no longer there?
After installing Homebrew in the Terminal.app with the command:
bash/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I ran an update (always a good practice):
bashbrew update
To verify everything installed run the command:
bashbrew list
If you do not want to view the results in the Terminal you can run this command do output a file to your Desktop:
bashcd Desktop && brew list >> the-list.log