license-audit:   audit package licenses
1 Running raco license-audit
2 Examples
3 Output format
8.16

license-audit: audit package licenses๐Ÿ”—โ„น

Sorawee Porncharoenwase <sorawee.pwase@gmail.com>

 (require license-audit) package: license-audit

This package provides a tool raco license-audit to audit package licenses. The tool also shows information from transitive dependencies.

1 Running raco license-audit๐Ÿ”—โ„น

raco license-audit โ€นoptionโ€บ ... โ€นnameโ€บ ... displays license information of โ€นnameโ€บs, including their dependencies, to the standard output. By default, it queries information from locally installed packages first, and if the information is not available locally, it proceeds to query information from the package index server.

Following โ€นnameโ€บ is specially recognized:

The raco license-audit command accepts the following โ€นoptionโ€บs:

2 Examples๐Ÿ”—โ„น

As an example, running raco license-audit --local-only license-audit on a aarch64-macosx system might output the following

=== package: license-audit ===

 

30 packages queried

 

โ•ญโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ

โ”‚  *  โ”‚ package name                  โ”‚ required by       โ”‚ license                      โ”‚

โ”œโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค

โ”‚ [l] โ”‚ license-audit                 โ”‚ -                 โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ base                          โ”‚ license-audit     โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ racket-lib                    โ”‚ base              โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ racket-aarch64-macosx-3       โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (BSD-3-clause AND OpenSSL)) โ”‚

โ”‚ [l] โ”‚ text-table                    โ”‚ license-audit     โ”‚ no license indicated         โ”‚

โ”‚ [l] โ”‚ pprint                        โ”‚ license-audit     โ”‚ no license indicated         โ”‚

โ”‚ [l] โ”‚ dherman-struct                โ”‚ pprint            โ”‚ no license indicated         โ”‚

โ”‚ [l] โ”‚ compatibility-lib             โ”‚ dherman-struct    โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ scheme-lib                    โ”‚ compatibility-lib โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ net-lib                       โ”‚ compatibility-lib โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ srfi-lite-lib                 โ”‚ net-lib           โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ sandbox-lib                   โ”‚ compatibility-lib โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ errortrace-lib                โ”‚ sandbox-lib       โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ source-syntax                 โ”‚ errortrace-lib    โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ rackunit-lib                  โ”‚ pprint            โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ testing-util-lib              โ”‚ rackunit-lib      โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [u] โ”‚ racket-win32-i386-3           โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ racket-win32-x86_64-3         โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ racket-win32-arm64-3          โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ racket-x86_64-linux-natipkg-3 โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ racket-x86_64-macosx-3        โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ racket-i386-macosx-3          โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ racket-ppc-macosx-3           โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ db-ppc-macosx                 โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ db-win32-i386                 โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ db-win32-x86_64               โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ db-win32-arm64                โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ db-x86_64-linux-natipkg       โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ com-win32-i386                โ”‚ racket-lib        โ”‚ -                            โ”‚

โ”‚ [u] โ”‚ com-win32-x86_64              โ”‚ racket-lib        โ”‚ -                            โ”‚

โ•ฐโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

 

However, running the same command without --local-only produces:

=== package: license-audit ===

 

30 packages queried

 

โ•ญโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ

โ”‚  *  โ”‚ package name                  โ”‚ required by       โ”‚ license                      โ”‚

โ”œโ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค

โ”‚ [l] โ”‚ license-audit                 โ”‚ -                 โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ base                          โ”‚ license-audit     โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ racket-lib                    โ”‚ base              โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ racket-aarch64-macosx-3       โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (BSD-3-clause AND OpenSSL)) โ”‚

โ”‚ [l] โ”‚ text-table                    โ”‚ license-audit     โ”‚ no license indicated         โ”‚

โ”‚ [l] โ”‚ pprint                        โ”‚ license-audit     โ”‚ no license indicated         โ”‚

โ”‚ [l] โ”‚ dherman-struct                โ”‚ pprint            โ”‚ no license indicated         โ”‚

โ”‚ [l] โ”‚ compatibility-lib             โ”‚ dherman-struct    โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ scheme-lib                    โ”‚ compatibility-lib โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ net-lib                       โ”‚ compatibility-lib โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ srfi-lite-lib                 โ”‚ net-lib           โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ sandbox-lib                   โ”‚ compatibility-lib โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ errortrace-lib                โ”‚ sandbox-lib       โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ source-syntax                 โ”‚ errortrace-lib    โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ rackunit-lib                  โ”‚ pprint            โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [l] โ”‚ testing-util-lib              โ”‚ rackunit-lib      โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [g] โ”‚ com-win32-x86_64              โ”‚ racket-lib        โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [g] โ”‚ com-win32-i386                โ”‚ racket-lib        โ”‚ (Apache-2.0 OR MIT)          โ”‚

โ”‚ [g] โ”‚ db-x86_64-linux-natipkg       โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  blessing)                   โ”‚

โ”‚ [g] โ”‚ db-win32-arm64                โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  blessing)                   โ”‚

โ”‚ [g] โ”‚ db-win32-x86_64               โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  blessing)                   โ”‚

โ”‚ [g] โ”‚ db-win32-i386                 โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  blessing)                   โ”‚

โ”‚ [g] โ”‚ db-ppc-macosx                 โ”‚ racket-lib        โ”‚ (blessing AND (Apache-2.0 OR โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚   MIT))                      โ”‚

โ”‚ [g] โ”‚ racket-ppc-macosx-3           โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  OpenSSL)                    โ”‚

โ”‚ [g] โ”‚ racket-i386-macosx-3          โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (BSD-3-clause AND OpenSSL)) โ”‚

โ”‚ [g] โ”‚ racket-x86_64-macosx-3        โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (BSD-3-clause AND OpenSSL)) โ”‚

โ”‚ [g] โ”‚ racket-x86_64-linux-natipkg-3 โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  OpenSSL)                    โ”‚

โ”‚ [g] โ”‚ racket-win32-arm64-3          โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (LGPL-3.0-or-later AND      โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚   OpenSSL))                  โ”‚

โ”‚ [g] โ”‚ racket-win32-x86_64-3         โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (LGPL-3.0-or-later AND      โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚   OpenSSL))                  โ”‚

โ”‚ [g] โ”‚ racket-win32-i386-3           โ”‚ racket-lib        โ”‚ ((Apache-2.0 OR MIT) AND     โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚  (LGPL-3.0-or-later AND      โ”‚

โ”‚     โ”‚                               โ”‚                   โ”‚   OpenSSL))                  โ”‚

โ•ฐโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

 

3 Output format๐Ÿ”—โ„น

The first column indicates the status:

The second column indicates a package name.

The third column indicates what package requires the package. I.e., it shows why the row is included in the output. - means there is no package that requires the package (because it is a โ€นnameโ€บ).

The fourth column indicates a license S-expression. If there is no license defined, no license indicated will be shown.