Binary Dependency Utility

2.14.0 · active · verified Sun Apr 12

Bindep is a command-line utility for checking the presence of binary packages required by an application or library. It helps manage operating system-level package dependencies, particularly in development and CI environments, and originated from the OpenStack project to ensure necessary system packages are installed before Python dependencies. The current version is 2.14.0, requiring Python >=3.8, and it follows an irregular, as-needed release cadence.

Warnings

Install

Imports

Quickstart

Create a `bindep.txt` file listing binary package dependencies. Each line specifies a package name, optionally followed by profile selectors and version constraints. Then, run the `bindep` command to check for missing packages. The `--brief` option outputs only the names of missing packages.

echo "grep" > bindep.txt
echo "python3-dev [platform:debian]" >> bindep.txt
echo "python3-devel [platform:rhel]" >> bindep.txt

# To check for missing packages:
bindep --brief

# Example of checking a specific profile (e.g., 'debian')
bindep --profile debian --brief

view raw JSON →