skillfed

distro2sbom

SBOM generator for system distribution

distro2sbom v0.6.0 108.9K downloads/30d#12,534 on PyPI41
Permissive license Apache-2.0 Active released

What it is and what it does

Distro2sbom is a command-line tool that scans system package managers or input files to generate standardized SBOMs in SPDX or CycloneDX format. It works by querying installed distributions (rpm, deb, windows, freebsd, or auto-detected) and extracting package metadata, then serializing the results as JSON, YAML, or tag-value output. The tool is designed for integration into CI/CD pipelines to maintain auditable records of software components and versions used in deployments.

The package depends on lib4sbom for SBOM generation and serialization. It supports scanning either a specific installed package, all packages on a running system, or a pre-generated package list from a file. Metadata like product name, version, author, and component type can be customized via command-line flags. The tool is classified as Alpha and actively maintained, with support for modern Python versions (3.7 through 3.11).

Use it for:

  • Generate SBOMs for CI/CD pipelines to track software components and versions deployed in production systems.
  • Audit installed packages on a running system to support compliance and security reviews.
  • Convert distribution package lists (rpm -qa, dpkg -l output) into standardized SBOM formats for supply chain analysis.
  • Create SBOMs for containerized or virtualized environments to document all dependencies at deployment time.
  • Support vulnerability tracking workflows by maintaining versioned records of all installed components.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Generates a Software Bill of Materials (SBOM) for installed packages or complete system distributions in SPDX and CycloneDX formats, identifying all dependent components.

Yes. The package fills a clear need for SBOM generation across multiple distribution types with low install friction, active maintenance, no known vulnerabilities, and a permissive license. It is suitable for security-conscious teams building CI/CD pipelines or conducting supply chain audits. The Alpha status and modest download volume suggest it is not yet widely adopted, so verify compatibility with your specific distribution and use case before production deployment.

Install

distro2sbom on PyPI

pip

pip install distro2sbom

uv

uv add distro2sbom

poetry

poetry add distro2sbom

Installing distro2sbom

Before you install

Low friction installation with a single runtime dependency (lib4sbom). Active maintenance with recent commits and regular releases since initial launch.

License in practice

Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most deployment contexts.

Quickstart

pip install distro2sbom

distro2sbom --system --sbom spdx --format json -o sbom.json

Requires Python 3.7 or later; tool relies on system package managers (rpm, dpkg, etc.) being present and accessible for the target distribution type.

Verify before relying

  • Actual performance and completeness when scanning large system installations with thousands of packages.
  • Compatibility and accuracy across all supported distribution types (rpm, deb, windows, freebsd) in production environments.
  • Whether lib4sbom dependency introduces additional system-level requirements or constraints.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 1 — lib4sbom
Maintenance actively maintained — 480 days since the last release
Last repo commit
First released
Downloads 108,922/month — #12,534 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: distro2sbom-0.6.0-py2.py3-none-any.whl

Keywords: security, tools, SBOM, DevSecOps, SPDX, CycloneDX, Distributions

Development Status :: 3 - AlphaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Tags

SBOM generatorsoftware bill of materialsSPDX CycloneDX exportsystem package inventorydistribution SBOMsupply chain securitypackage dependency audit
sbom-generationsupply-chain-securitydevops

More Quality Assurance packages