Differences between revisions 10 and 12 (spanning 2 versions)
Revision 10 as of 2011-08-31 13:57:51
Size: 2834
Editor: HenriLeFoll
Comment: content from DebianPackaging
Revision 12 as of 2011-08-31 14:02:36
Size: 2834
Editor: HenriLeFoll
Comment: wrong page
No differences found!

Introduction to Debian Packaging

First read the excellent Introduction to Debian Packaging.

There is another interesting document on how to package for Debian

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 installed 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

  • ToDo: This page needs cleanup