doc:guides:deb

Basic debian package creation

This is a very summarized guide on how to build debian packages

Wether the nature of the software you're going to package (if compiling is needed you will need gcc, or if is perl based you may need some perl modules), the debian packaging systems required the following:

  • build-essentials
  • devscripts
  • fakeroot
  • gcc
  • debhelper
  • lintian

On this case we are going to supose that the devloper already provided you the needed debian configuraiton to build the package (i.e. the packages already exists but you need another architecture which is not provided upstream).

In this cas you will need to have:

  • package.dsc file
  • package.orig.tar.gz which should containe the upstream sources without any modificaiton
  • package.debian.tar.xz which containes the debian setup for packaging
  • Change your working direcctory to the system sources directory: /usr/local/src/
  • Uncommpress all the files (for xz tarballs use sijmply tar xvf to uncompress)
  • Move if needed debian directory inside the package source root directory
  • Enter the sources directory
  • Run:

    # debuild -us -uc
    First will check if you have all needed dependencies to build/compile/install the software, if not it will report you the needed packges. If everything goes fine will start building the packages which will end stored on /usr/local/src/

  • doc/guides/deb.txt
  • Last modified: 2021/06/10 21:43
  • by 127.0.0.1