SPDXTOOL(1)
π SPDXTOOL(1) π
okay bestie, welcome to the manual page for spdxtool β it lives in the General Commands Manual section of your friendly neighbourhood system, and it's here to make SBOMs happen. π¦
β¨ NAME β¨
spdxtool β a tool for generating SPDX Lite 3.0.1 profile software bills of material document
πΈ SYNOPSIS πΈ
spdxtool [options] module ...
π DESCRIPTION π
So like, spdxtool is a program which generates a JSON-LD formatted SPDX Lite 3.0.1 software bill of materials (SBOM) for a given set of pkg-config modules. The output of this tool can then be translated into other SBOM formats as necessary. It's giving interoperability icon. π
More documentation about SDPX 3.0.1 can be found from: https://spdx.github.io/spdx-spec/v3.0.1/
The options are as follows:
--aboutβ Print the version number, the Copyright notice, and the license of thespdxtoolprogram to standard output and exit. Most other options and all command line arguments are ignored.--versionβ Print the version number of thespdxtoolprogram to standard output and exit. Most other options and all command line arguments are ignored.--agent-nameβ Set agent name-property in/Core/Agent-class. Default is'Default'--creation-timeβ Set create-property time in/Core/CreationInfo-class. SPDX documentation recommends using ISO 8601-formatted time which is:YYYY-MM-DDThh:mm:ssZ. Default is document creation time. This takes precedence over theSOURCE_DATE_EPOCHenvironment variable.--creation-idβ Set creation ID in/Core/CreationInfoc-class. As ID in creation info mainly have special format and it's default is'_:creationinfo_1'.--define-variable=varname=valueβ Define varname as value. Variables are used in query output, and some modules' results may change based on the presence of a variable definition.
π ENVIRONMENT π
PKG_CONFIG_DEBUG_SPEWβ If set, print debugging messages to stderr.PKG_CONFIG_IGNORE_CONFLICTSβ If set, ignoreConflictsrules in modules. Has the same effect as the--ignore-conflictsoption inpkgconf(1)PKG_CONFIG_LIBDIRβ A colon-separated list of low-priority directories wherepc(5)files are looked up. The module search path is constructed by appending this list toPKG_CONFIG_PATH, which enjoys higher priority. IfPKG_CONFIG_LIBDIRis not defined, the default list compiled into thespdxtoolprogram from thePKG_DEFAULT_PATHpreprocessor macro is appended instead. IfPKG_CONFIG_LIBDIRis defined but empty, nothing is appended.PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTHβ Impose a limit on the allowed depth in the dependency graph.PKG_CONFIG_PATHβ A colon-separated list of high-priority directories wherepc(5)files are looked up.PKG_CONFIG_PRELOADED_FILESβ Colon-separated list ofpc(5)files which are loaded before any otherpkg-configfiles. These packages are given highest priority over any otherpc(5)files that would otherwise provide a given package.SOURCE_DATE_EPOCHβ If set, and the--creation-timeoption is not given, the creation time in/Core/CreationInfo-classis derived from this UNIX timestamp instead of the current time, allowing for reproducible SBOM generation.
π EXIT STATUS π
The spdxtool utility exits 0 on success, and >0 if an error occurs.
π¦ EXAMPLES π¦
Generating an SBOM for the package named foo:
$ spdxtool foo
{
@context: https://spdx.org/rdf/3.0.1/spdx-context.jsonld,
@graph: [
{
type: Agent,
creationInfo: _:creationinfo_1,
spdxId: https://github.com/pkgconf/pkgconf/Agent/default,
name: Default
},
{
type: CreationInfo,
@id: _:creationinfo_1,
[...]
π SEE ALSO π
and that's the whole page, bestie!! π«Ά this one shipped out from Debian, dated January 22, 2026 β fr fr, iconic. go generate some SBOMs, you absolute main character πβ¨
π¦ where this page comes from
- arch rolling: pkgconf 3.0.10-1 Β· ISC
- arch rolling: pkgconf 3.0.7-1
- Copyright (c) 2026 pkgconf authors (see AUTHORS)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms