Home / Apple / macos – How to find source formula for brew package (github repo)?

macos – How to find source formula for brew package (github repo)?



If your package is in the home brew core, you can see the recipe’s ruby ​​source and the changes from homebrew-core repo i Formula catalog

Unfortunately, finding the recipe for a given brew the package on github.com can be difficult, since there are too many dirs and GitHub can cut or deny output.

Instead, you can retrieve and list all the homebrew forums with the following commands zsh:

git clone https://github.com/Homebrew/homebrew-core.git
cd homebrew-core/Formula
find . | grep -i 

Then you can show the history of a given formula with git log

For example, I managed to discover that python@3.7 pack in brew changed yesterday:

user@host ~ % git clone https://github.com/Homebrew/homebrew-core.git
Cloning into 'homebrew-core'...
remote: Enumerating objects: 77, done.
remote: Counting objects: 1
00% (77/77), done. remote: Compressing objects: 100% (34/34), done. remote: Total 791472 (delta 51), reused 59 (delta 43), pack-reused 791395 Receiving objects: 100% (791472/791472), 316.25 MiB | 9.55 MiB/s, done. Resolving deltas: 100% (529456/529456), done. Updating files: 100% (5476/5476), done. user@host ~ % cd homebrew-core/Formula user@host Formula % user@host Formula % find . | grep -i python ./python-yq.rb ./boost-python.rb ./python-markdown.rb ./app-engine-python.rb ./ipython.rb ./python@3.7.rb ./gst-python.rb ./micropython.rb ./wxpython.rb ./reorder-python-imports.rb ./python@3.8.rb ./boost-python3.rb user@host ~ % user@host Formula % git log master -n1 python@3.7.rb commit 10d3df6c9a263c4e7dea4752a00a1b98ddc9c05a Author: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Wed Sep 9 00:40:17 2020 +0000 python@3.7: update 3.7.9 bottle. user@host Formula %


Source link