Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Recursive dependencies for apt

Project description

Recursively resolve package dependencies using apt.


On Debian/Ubuntu: pip install apt_deps


command line:

usage: apt-deps [-h] PACKAGES [PACKAGES ...]

Find recursive dependencies of installed package.

positional arguments:
 PACKAGES    package(s) to resolve dependencies

optional arguments:
 -h, --help  show this help message and exit
 -r, --recommends  Include "recommended" packages


import apt_deps.get_deps
a = apt_deps.get_deps.DepFinder(['apt', 'nginx-extras'])
# get a different set of dependencies
a(['apache2', 'python'])


It works 60% of the time, every time.


On Ubuntu and Debian systems, you can apt-get install python-apt

If you want to build in a virtualenv, you need to do one of the following: 1) Initiate your virtualenv using site-packages virtualenv –site-packages

2) Install required system libs and install python-apt from source. apt-get install g++ gcc libapt-pkg-dev pip install git+git://

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
apt_deps-1.2.1.tar.gz (11.0 kB) Copy SHA256 hash SHA256 Source None Feb 10, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page