How can I find the sources and changes for a given brew
package?
I'm having an issue with a package that's installed via brew
on a cloud instance whose image I don't control. I'm trying to figure out if the issue is a result of the package installed from brew
or not.
I want to find the source for that package in the brew system (that is, the git or other VCS where the formula/cask are maintained) and see what changes were made to the package in the past few days/weeks, look through the commits, and read their CHANGELOG
.
How can I determine the repository for a given package on brew
and look through its commits over time?
Best Answer
If your package is in homebrew-core, then you can view the recipe's ruby source and its changes from the
homebrew-core
repo in theFormula
directoryUnfortunately, finding the recipe for a given
brew
package on github.com may be tricky, since there's too many dirs and GitHub may truncate or refuse the output.Instead, you can get and list all the homebrew forumulas with the following commands in
zsh
:Then you can show the history of a given formula with
git log
For example, I was able to discover that the
python@3.7
package inbrew
changed yesterday: