license-audit: audit package licenses
(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:
@ โ
a meta package that depends on all packages on the package index server and all packages locally installed. @-global โ
a meta package that depends on all packages on the package index server. @-local โ
a meta package that depends on all packages locally installed. @-local-user โ
a meta package that depends on all packages locally installed in the user scope. @-local-installation โ
a meta package that depends on all packages locally installed in the installation scope.
The raco license-audit command accepts the following โนoptionโบs:
--local-only, -l โ
only read the license information from locally installed packages. --global-only, -g โ
only read the license information from the package index server. --build-time, -b โ
include build-time dependencies. --no-main-distribution โ
exclude packages in the main distribution (including their transitive dependencies and its tests). --tags โ
show tags (this option requires --global-only). --authors โ
show authors and group by them (this option requires --global-only).
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:
[l] โ the package is queried from locally installed packages
[g] โ the package is queried from the package index server
[u] โ the package canโt be queried from locally installed packages (only applicable for --local-only).
One possible reason for a package to have this status is that the package is a conditional dependency, which will be installed only on a specific platform, and the platform does not match the local platform. For example, in Examples, racket-win32-i386-3 is a conditional dependency (of base). The package will be installed only on win32-i386. Therefore, it has the [u] status, as the local platform here is aarch64-macosx, which doesnโt match win32-i386.
[U] โ the package canโt be queried from the package index server (only applicable for non --local-only)
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.