Question

Is there a way to list only the packages that were built from source? I want to check what options they were built with, and since that's the main reason I install packages by building from source most of the time, this would be useful.

I imagine it wouldn't be too difficult to write a script to list all packages and filter out the ones poured from bottle, but I'm wondering if a simpler way exists.

I could just brew info and go through all of them to check, but when the output is really long, it isn't that trivial to do this.

Was it helpful?

Solution

I believe that Cakebrew lets you do that, but I can't confirm this

OTHER TIPS

List all bottled formulae

by querying the JSON and parsing the output

brew info --json=v1 --installed | jq -r "map(select(.installed[].poured_from_bottle) | .name) | unique | .[]" | tr '\n' ' '

List all non-bottled formulae

by querying the JSON and parsing the output and using | not

brew info --json=v1 --installed | jq -r "map(select(.installed[].poured_from_bottle | not) | .name) | unique | .[]"
Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top