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:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
I ran an update (always a good practice):
brew update
To verify everything installed run the command:
brew 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:
cd Desktop && brew list >> the-list.log