World Library  
Flag as Inappropriate
Email this Article


Article Id: WHEBN0003584322
Reproduction Date:

Title: Debhelper  
Author: World Heritage Encyclopedia
Language: English
Publisher: World Heritage Encyclopedia


debhelper is a suite of programs originally written by Joey Hess that help a Debian packager write rules files. A rules file is a makefile that contains instructions for building and creating a Debian package.


There are many tasks that need to be performed over and over again in the rules files. Instead of cutting and pasting code to do these tasks, debhelper allows a packager to simply call one of its 58 programs[1] to do the task for them.

debhelper can greatly simplify things. Debian includes packages of GNU hello made both with and without debhelper as examples for packagers. The rules file that does not use debhelper is 2,174 characters. In contrast, the version that uses debhelper is 783 characters.

Version 7 of debhelper introduced the dh helper, which can significantly simplify rules files for common cases. A debhelper 7 powered rules file can be as short as 3 lines, or 29 characters:[2]

#!/usr/bin/make -f
	dh $@


Related to debhelper, there is also a tool called dh_make. dh_make copies templates of all of the files needed to build a debian package to the source directory of a program. These templates are customized slightly based on information that the user gives and on a cursory examination of how the source code is built. After running dh_make, a developer still has to edit most of the template files to be able to build the package.

Although closely related to it, dh_make is not part of debhelper; it was separately developed by Craig Small.

See also


External links

  • debhelper website

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.