Setting up Distro Tracker


Distro Tracker currently depends on the following Debian packages:

  • python-django (>= 1.8)
  • python-requests
  • python-django-jsonfield (>= 1.0.0)
  • python-django-debug-toolbar (in development mode only)
  • python-django-captcha (optional)
  • python-debian
  • python-apt
  • python-gpgme
  • python-yaml
  • python-bs4
  • python-pyinotify
  • python-soappy (optional)
  • python-ldap (optional)
  • python-tox (for development only)
  • python-selenium (for development only)
  • chromedriver (for development only)
  • chromium (for development only)

For Python2.7, the following additional packages are required:

  • python-mock (for development only)
  • python-lzma

Here is the list of required packages for development on Debian Jessie:

$ sudo apt install python-django python-requests python-django-jsonfield python-django-debug-toolbar python-debian python-apt python-gpgme python-yaml python-bs4 python-soappy python-ldap python-pyinotify python-tox python-mock python-lzma python-selenium python3-django python3-requests python3-django-jsonfield python3-django-debug-toolbar python3-debian python3-apt python3-gpgme python3-yaml python3-bs4 python3-pyinotify python3-selenium chromium chromedriver


Distro Tracker does not rely on any database specific features and as such should be able to run on top of any database server. The only possible known issue is when using sqlite3 which has a limit on the number of query parameters of 999 on some systems.

When you choose your database flavor, you must install the Python bindings, i.e. psycopg2 for PostgreSQL and MySQL-Python for MySQL, etc.

To create the database you must run the following commands:

$ ./ migrate

See also the Debian package’s README.Debian for some details about the setup.

Local Settings

While Distro Tracker tries to guess as much as needed, you generally will want to customize some of its parameters. You can do so by copying distro_tracker/project/settings/ to distro_tracker/project/settings/ and then editing the latter file. Have a look at distro_tracker.project.settings.defaults to learn about all the variables that you can override and extend.

To make things easier, Distro Tracker provides default configuration suitable for production use (installed from the Debian package) or for development use (running out of a git checkout). Depending on the case, the symlink points either to or to


The DISTRO_TRACKER_KEYRING_DIRECTORY lets you define a path to a directory containing known public PGP keys. These keys are used when verifying various signed content, such as news.

You may add a gpg.conf file in this directory with additional keyring directives if you want to include more keys than the ones found in pubring.gpg file.


Once everything is set up, be sure to run the test suite to make sure everything is actually working as expected. You can do this by issuing the following command from the Distro Tracker root directory:

$ ./ test

Cron tasks

The data used by distro-tracker needs to be regularly updated/refreshed. For this you must put “./ tracker_run_all_tasks” in cron.

Table Of Contents

Previous topic


Next topic

Integration with a Web Server

This Page