Skip to content

brew list with "License" field - do I have non-free software installed? #10

Discussion options

You must be logged in to vote

The first paragraph of https://docs.brew.sh/License-Guidelines reads:

We only accept formulae that use a Debian Free Software Guidelines license or are released into the public domain following DFSG Guidelines on Public Domain software.

So if you only use the core tap, your result set is guaranteed to be empty.

If you use third-party taps, there's no guarantee that they have license stanzas, but a fairly simple way to get the info you want involves jq:

brew info --json --installed | jq -r '.[] | [.name, .license] | @tsv' | while IFS=$'\t' read name license; do
  # Check $license for non-free indicators
  ...
done

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by GETandSELECT
Comment options

You must be logged in to vote
2 replies
@SMillerDev
Comment options

@SMillerDev
Comment options

Comment options

You must be logged in to vote
4 replies
@SMillerDev
Comment options

@brettp
Comment options

@GETandSELECT
Comment options

@p-linnane
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants