63.1 Debian Packages

20211025

To package software for Debian we use the deb format, one opf the pioneering approaches to packaging the softare source and meta data. To use this you will need to utilise various packaging support tools, include doc-debian, debian-policy, debmake, devscripts, fakeroot, apt, dpkg, make, g++, gcc, perl, autoconf, sed, and libc6-dev

You can become part of the international effort that is Debian GNU/Linux by maintaining finding a package that you use regularly but is not available under Debian. You can then package it up and perhaps even become a Debian developer yourself. The steps to take include:

  • Read the developer documentation at http://www.debian.org/doc/devel-manuals, probably starting with the “New Maintainer’s Guide” at http://www.debian.org/doc/maint-guide/. Most of these manuals can be installed as debian packages and read offline.
  • Send a message to the debian-devel mailing list with a subject line ITP: mynewpackage (the ITP stands for ). This will let others know your intention, and serve to double check that it has not already been done, and that it is worth doing!
  • Find a Debian developer that will sponsor you. % http://www.internatif.org/bortzmeyer/debian/sponsor/
  • Your sponsor will have access to the debian machines and can test your package on all the architectures with you.

We will use as an example the packaging of a Debian tool called wajig. It is a simplified front end to the APT and DPKG suite of tools. It is a python program. We use autoconf to manage the configuration and turned the tool into a Debian package using the steps outlined below. We essentially follow the example in the Debian Policy Manual at http://www.debian.org/doc/debian-policy/.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0