{"id":26897,"library":"distro2sbom","title":"distro2sbom","description":"A Python tool to generate Software Bill of Materials (SBOM) for system distributions (Debian, RPM, Arch, BSD). Currently at version 0.6.0, released irregularly. Supports SPDX and CycloneDX formats.","status":"active","version":"0.6.0","language":"python","source_language":"en","source_url":"https://github.com/anthonyharrison/distro2sbom","tags":["sbom","software-bill-of-materials","security","debian","rpm","arch","bsd","cli"],"install":[{"cmd":"pip install distro2sbom","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The library is a CLI tool, not meant for Python import. No public API.","symbol":"distro2sbom","correct":"import distro2sbom"}],"quickstart":{"code":"from distro2sbom import cli\ncli.main([\"--help\"])","lang":"python","description":"Run the CLI from Python (avoid). Prefer command line: distro2sbom --help"},"warnings":[{"fix":"Install and run via the command line as `distro2sbom [options]`.","message":"distro2sbom is a command-line tool only. It does not expose a stable Python API; importing it directly is unsupported.","severity":"gotcha","affected_versions":"all"},{"fix":"Specify format explicitly with `--format spdx` or `--format cyclonedx`.","message":"In v0.5.0, the default SBOM format changed. Scripts relying on the previous default may break.","severity":"breaking","affected_versions":">=0.5.0"},{"fix":"Use `--distro-type` instead of `--type`.","message":"The `--type` flag was replaced with `--distro-type` in v0.4.1. Using `--type` may be ignored.","severity":"deprecated","affected_versions":"<0.4.1"},{"fix":"Ensure the target distribution tools are installed (dpkg, rpm, etc.) and use the correct `--distro-type`.","message":"On non-Debian systems, Debian-specific features (e.g., `--input-file` with .deb) will fail silently or throw errors.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `pip install distro2sbom` in the correct virtual environment.","cause":"distro2sbom is not installed or Python environment is misconfigured.","error":"ModuleNotFoundError: No module named 'distro2sbom'"},{"fix":"Use `--distro-type debian` instead of `--type debian`.","cause":"In v0.4.1+, `--type` was renamed to `--distro-type`.","error":"distro2sbom: error: unrecognized arguments: --type debian"},{"fix":"Use one of: auto, deb, rpm, arch, bsd.","cause":"An invalid or unsupported distribution type was passed to `--distro-type`.","error":"ValueError: Unsupported distribution type"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}