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

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 names, 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 options:

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.