I have an old homebrew
installation that is now not in use on a backup drive. I'd like to list all of the packages that were installed when it was in use, how can this be done without mv'ing it back over to /usr/local
and making it operational again?
List of all installed packages in a defunct Homebrew installation
homebrew
Related Question
- MacOS – Two different locations for Homebrew
- Mac – List all installed macOS packages
- Where does Homebrew store its installed packages list
- Apple Silicon: port all Homebrew packages under /usr/local/opt/ to /opt/homebrew
- List all homebrew packages explicitly installed by the user (without deps)
- Brew: create install script for all installed packages/casks
Best Answer
According to the Homebrew terminology, we have the following definitions :
As said in the comments, to list all packages previously installed on a backup drive you can do :
If you want to have a better understanding of Homebrew paths, I recommend the reading of the following article : The Path to Homebrew.