deb-pkg-tools
Debian packaging tools
What it is and what it does
deb-pkg-tools is a Python library and CLI for automating Debian binary package operations. It wraps lower-level Debian tools (dpkg, fakeroot, lintian, apt-ftparchive) to provide higher-level functions for building packages, inspecting metadata, validating packages, managing repositories, and collecting dependencies. The package exposes functionality both as a Python API for programmatic use and as shell-friendly command-line commands, making it useful in build automation and package management scripts.
The package enforces opinionated defaults about how Debian packages should be built but provides environment variables and function arguments to override most behaviors. It was tested on CPython 2.7, 3.5+, and PyPy at the time of its last release. The codebase claims around 90% test coverage, though the package has not been actively maintained since March 2021.
Use it for:
- Automate building Debian binary packages in CI/CD pipelines without manual dpkg-deb invocations.
- Inspect and validate .deb archive metadata and dependencies programmatically before deployment.
- Create and manage trivial Debian package repositories for internal or testing purposes.
- Collect a package and all its dependencies into a single directory for offline installation.
- Perform static analysis on package archives to catch common packaging errors early.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Builds, inspects, and manages Debian binary packages and repositories via Python API and command-line tools.
No. The package is abandoned (last release 2021-03-09) with no active maintenance or security updates. While it has low install friction and permissive licensing, the lack of maintenance means it will not receive bug fixes, security patches, or compatibility updates for modern Python versions or Debian systems. Use only if you are maintaining legacy systems already running this package and cannot migrate to actively maintained alternatives.
Install
deb-pkg-tools on PyPI
pip
pip install deb-pkg-toolsuv
uv add deb-pkg-toolspoetry
poetry add deb-pkg-toolsInstalling deb-pkg-tools
Before you install
Low install friction with five runtime dependencies. However, the package is abandoned—last release was 2021-03-09, over 1984 days ago. No active maintenance or security updates.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions.
Quickstart
pip install deb-pkg-tools
from deb_pkg_tools.package import inspect_package
metadata = inspect_package('/path/to/package.deb')
Requires external Debian tools: dpkg-dev, fakeroot, and lintian must be installed via system package manager (e.g., apt-get). Package is abandoned and may not work with modern Python or Debian versions.
Verify before relying
- Whether the package still works correctly with current Debian/Ubuntu systems and modern Python versions beyond those tested at release.
- Compatibility status with Python 3.9+ given the last release predates these versions.
- Whether external Debian tools (dpkg-dev, fakeroot, lintian) remain compatible with the package's expectations.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 5 — executor, coloredlogs, humanfriendly, property-manager, six |
| Maintenance | abandoned — 1,984 days since the last release |
| First released | |
| Downloads | 101,373/month — #12,942 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: deb_pkg_tools-8.4-py2.py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
bindepBindep checks for missing system binary…
permissive · top 5,000 on PyPI
debian-inspectorParses Debian package metadata, copyright…
permissive · top 15,000 on PyPI
python-debianReads and manipulates Debian packaging metadata…
copyleft · top 5,000 on PyPI
requires.ioA command-line tool and Python API client for…
unclear · top 15,000 on PyPI
pwntoolsPwntools is a CTF framework and exploit…
permissive · top 5,000 on PyPI
stdebConverts Python packages into Debian source and…
permissive · top 15,000 on PyPI
rpmfileInspect and extract files from RPM archive…
permissive · top 5,000 on PyPI
pylibfdtProvides Python bindings to libfdt, the device…
unclear · top 15,000 on PyPI
conda-package-handlingCreate, extract, and convert conda packages in…
permissive · top 15,000 on PyPI
patoolPatool is a command-line archive manager that…
copyleft · top 5,000 on PyPI