debsbom delta

Synopsis

debsbom delta [-h] [-o OUT] [--distro-name DISTRO_NAME]
              [--distro-supplier DISTRO_SUPPLIER]
              [--distro-version DISTRO_VERSION]
              [--distro-summary DISTRO_SUMMARY]
              [--base-distro-vendor {debian,ubuntu}]
              [--spdx-namespace SPDX_NAMESPACE]
              [--cdx-standard {default,standard-bom}]
              [--cdx-schema-version {latest}]
              [--cdx-serialnumber CDX_SERIALNUMBER] [--timestamp TIMESTAMP]
              [--add-meta-data key=value] [--validate] [-t {cdx,spdx}]
              base_sbom target_sbom

Description

List components changed in target sbom

Compute the delta between base and target SBOMs, producing a new SBOM containing only additional components from the target.

The delta command compares two SBOMs and produces a new SBOM containing only the components that are present in the target SBOM but not in the base (reference) SBOM.

The most common use-case is identifying new or added components between two builds, images, or distribution states (for example, comparing a previous release SBOM against a newer one), including filtering out already license-cleared components to generate an SBOM containing only components pending license clearance.

The comparison is directional:

  • Base SBOM – treated as the reference

  • Target SBOM – treated as the new or updated SBOM

Given the following structure:

Base SBOM

base-root
|- binary-dep1
|  |- source-dep1
|- binary-dep2

Target SBOM

target-root
|- binary-dep1
|  |- source-dep1
|- binary-dep2
|- binary-dep3
|  |- source-dep3

Running delta would produce:

delta-doc-root
|- binary-dep3
|  |- source-dep3

Components are considered the same if they share the same PURL (Package URL). Only components that are new in the target SBOM, along with their nested dependencies, are included in the resulting SBOM.

SEE ALSO

debsbom-generate(1)

DEBSBOM

Part of the debsbom(1) suite.