With brew, how do I only list packages that were built from source (not poured from bottle)?

apple.stackexchange https://apple.stackexchange.com/questions/313130

  •  19-04-2021
  •  | 
  •  

Pergunta

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.

Foi útil?

Solução

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

Outras dicas

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 | .[]"
Licenciado em: CC-BY-SA com atribuição
Não afiliado a apple.stackexchange
scroll top