Differences

This shows you the differences between two versions of the page.

debian_package [2006/10/21 12:24]
alban created
debian_package [2007/11/16 16:47] (current)
213.225.48.202
Line 1: Line 1:
 +====== Debian package ======
 +
 +
 +[[Debian]] provides a famous [[wp>package management system]] and APT, the [[wp>Advanced Packaging Tool]] in particular, its strict policies regarding the quality of its packages. These practices afford easy upgrades between releases without rebooting and easy installation and removal of packages.
 +
 +Currently, [[Debian]] provides more than 8711 packages.
 +
 +===== Where to find a Debian package =====
 +
 +  * http://www.debian.org/distrib/packages
 +  * [[http://www.apt-get.org|Registry of unofficial APT repositories]]
 +  * [[Tryphon Debian repository]]
 +
 +===== How to create a Debian package =====
 +
 +The [[http://packages.debian.org/dpkg|dpkg]] tool allows all necessary manipulations to install and create Debian packages. But use helper tools like [[http://kitenet.net/programs/debhelper|debhelper]].
 +
 +  * [[http://www.kclee.com/clemens/unix/HowToCreateYourOwnDebianPackage.html|How to Create Your First Debian Package]]
 +  * [[http://www.debian.org/doc/maint-guide/|Debian New Maintainers' Guide]]
 +  * [[http://linuxdevices.com/articles/AT8047723203.html|How to make deb packages]]
 +
 +==== Complete build ====
 +
 +When your package is ready, you need to achieve a complete build with the following command ::
 +
 +  dpkg-buildpackage -rfakeroot
 +
 +See [[http://www.debian.org/doc/maint-guide/ch-build.en.html#s-completebuild|Debian New Maintainers' Guide - Chapter 6 - Building the package]]
 +
 +===== Apt Tips =====
 +
 +==== Dynamic !MMap ran out of room ====
 +
 +If your ''apt-get update'' fails with this kind of message ::
 +
 +  E: Dynamic MMap ran out of room
 +  E: Error occured while processing osh (NewVersion1)
 +  E: Problem with MergeList /var/lib/apt/lists/security.debian.org_dists_stable_updates_main_binary-i386_Packages
 +  E: The package lists or status file could not be parsed or opened.
 +
 +The solution is adding this parameter to your ''/etc/apt/apt.conf'' ::
 +
 +  APT::Cache-Limit "42123456";
 +
 +==== How to prevent a debian package upgrade? ====
 +
 +If you need to keep back a particular debian package, set this package status to //hold//:
 +
 +  echo <package> hold | dpkg --set-selections
 +
 +Very useful, if you re-package a package to change compulation configuration (like addind SSL support to ircd-hybrid for instance ;-).
 +Read [[http://lists.netisland.net/archives/plug/plug-2004-05/msg00066.html|this thread]] for more details.
 
debian_package.txt · Last modified: 2007/11/16 16:47 by 213.225.48.202
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Run by Debian Driven by DokuWiki