Differences between revisions 14 and 16 (spanning 2 versions)
Revision 14 as of 2011-08-31 14:45:53
Size: 3246
Editor: HenriLeFoll
Comment: adding a reference to Lucas Nussbaum
Revision 16 as of 2011-08-31 19:12:51
Size: 3289
Editor: HenriLeFoll
Comment: add link to equivs
Deletions are marked like this. Additions are marked like this.
Line 10: Line 10:
There is also an intresting package : [[http://packages.qa.debian.org/p/packaging-tutorial.html|packaging-tutorial]] by [[http://qa.debian.org/developer.php?login=lucas@debian.org|Lucas Nussbaum]] There is also an intresting package : [[DebianPkg:packaging-tutorial|packaging-tutorial]] by [[http://qa.debian.org/developer.php?login=lucas@debian.org|Lucas Nussbaum]]
Line 12: Line 12:
A very basic introduction to create an [[/Minimal|empty package]] or a package with [[/Trivial|just a pdf file]] A very basic introduction of [[DebianPkg:equivs]] to create :
  *
an [[/Minimal|empty package]] or a [[/Trivial|package with some files]]
  * a [[CreateDummyPackage|dummy package]]

Introduction to Debian Packaging

First read the excellent Introduction to Debian Packaging.

There is another interesting document on how to package for Debian

There is also an intresting package : packaging-tutorial by Lucas Nussbaum

A very basic introduction of equivs to create :

  • an ?empty package or a ?package with some files

  • a ?dummy package

Debian Packaging

When you seriously think about packaging as new comer to Debian, please consider to read:

Please note some Ubuntu resources may be quite useful too.

Building debian packages

To make sure that a debian package meets all build dependencies and is not influenced by anything specific to the user's environment, packages should be built in a chroot environment. Tools like pbuilder can be used for this.

When working on a package, a faster rebuild can be done with 'debuild'. But then, all build-dependencies must be satisfied in the installation where the package is built. All necessary packages can be installA very basic introduction to create an ?empty package or a package with ?just a pdf file ed automatically with apt-get build-dep. A complete example for building the foo package looks like this:

 $ apt-get source foo
 $ cd foo-0.0.1
 $ sudo apt-get build-dep foo
 $ debuild -i -us -uc -b

This is usually enough for you to backport packages.

See also:


CategoryPackageManagement CategoryPackaging