Debian package

Debian provides a famous package management system and APT, the 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

How to create a Debian package

The dpkg tool allows all necessary manipulations to install and create Debian packages. But use helper tools like debhelper.

Complete build

When your package is ready, you need to achieve a complete build with the following command ::

dpkg-buildpackage -rfakeroot

See 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 this thread for more details.

debian_package.txt · Last modified: 2007/11/16 16:47 by
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