distro2sbom
SBOM generator for system distribution
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 distro2sbomuv
uv add distro2sbompoetry
poetry add distro2sbomInstalling 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
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
lib4sbomLib4sbom parses and generates Software Bill of…
permissive · top 15,000 on PyPI
cyclonedx-bomGenerates Software Bill of Materials (SBOM)…
permissive · top 5,000 on PyPI
cyclonedx-pyGenerates Software Bill of Materials (SBOM)…
unclear · top 15,000 on PyPI
cyclonedx-python-libProvides data models, validators, and…
permissive · top 1,000 on PyPI
bindepBindep checks for missing system binary…
permissive · top 5,000 on PyPI
socketdevA Python SDK that wraps the Socket.dev REST…
permissive · top 15,000 on PyPI
spdx-toolsParse, validate, create, and convert SPDX…
permissive · top 5,000 on PyPI
scancode-toolkitScanCode Toolkit detects licenses, copyrights,…
permissive · top 15,000 on PyPI
lib4vexLib4VEX parses and generates VEX (Vulnerability…
permissive · top 15,000 on PyPI
csaf-toolGenerates and analyzes CSAF 2.0 documents,…
permissive · top 15,000 on PyPI