Statistics

Meta

Maintainers

Project description

The Python package deb-pkg-tools is a collection of functions to work with
Debian packages and repositories. Some of those functions have a command line
interface (see below) because they’re very convenient to use in shell scripts,
while other functions are meant to be called directly from Python code. It’s
currently tested on Python 2.6, 2.7 and 3.4.

Status

On the one hand the deb-pkg-tools package is based on my experiences with
Debian packages and repositories over the past couple of years, on the other
hand deb-pkg-tools itself is quite young. Then again most functionality is
covered by automated tests; at the time of writing coverage is around 90% (some
of the error handling is quite tricky to test if we also want to test the
non-error case, which is of course the main focus :-)

Installation and usage

You can install the deb-pkg-tools package using the following command:

One thing to note is that the operation of deb-pkg-tools--update-repo can
be influenced by a configuration file. For details about this, please refer to
the documentation on deb_pkg_tools.repo.select_gpg_key().

If you’re interested in using deb-pkg-tools as a Python module, please refer
to the function reference on Read the Docs.

Dependencies

The deb-pkg-tools package depends on the python-debian package for control
file parsing (it will be automatically installed as a dependency). The
following external programs are also required (depending on which functionality
you need of course):

Program

Package

apt-ftparchive

apt-utils

apt-get

apt

cp

coreutils

dpkg-deb

dpkg

dpkg-scanpackages

dpkg-dev

du

coreutils

fakeroot

fakeroot

gpg

gnupg

gzip

gzip

lintian

lintian

The majority of these programs/packages will already be installed on most
Debian based systems so you should only need the following to get started:

$ sudo apt-get install dpkg-dev fakeroot lintian

Contact

The latest version of deb-pkg-tools is available on PyPI and GitHub. The
documentation is hosted on Read the Docs. For bug reports please create an
issue on GitHub. If you have questions, suggestions, etc. feel free to send me
an e-mail at peter@peterodding.com.