Linux Commands Examples

A great documentation place for Linux commands


install files used by debconf in package build directories


dh_installdebconf [debhelper options] [-n] [-- params]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


dh_installdebconf -i
dh_compress -i
dh_fixperms -i
dh_installdeb -i
dh_shlibdeps -i
dh_gencontrol -i
dh_gencontrol -i
dh_builddeb -i
binary-arch: build install
dh_installdebconf -a
# Sort mirror countries (including translations)


dh_installdebconf is a debhelper program that is responsible for installing files used by debconf into package build directories.

It also automatically generates the postrm commands needed to interface with debconf. The commands are added to the maintainer scripts by dh_installdeb. See dh_installdeb(1) for an explanation of how that works.

Note that if you use debconf, your package probably needs to depend on it (it will be added to ${misc:Depends} by this program).

Note that for your config script to be called by dpkg, your postinst needs to source debconf’s confmodule. dh_installdebconf does not install this statement into the postinst automatically as it is too hard to do it right.


-n, --noscripts

Do not modify postrm script.

-- params

Pass the params to po2debconf.



This is the debconf config script, and is installed into the DEBIAN directory in the package build directory.

Inside the script, the token #DEBHELPER# is replaced with shell script snippets generated by other debhelper commands.


This is the debconf templates file, and is installed into the DEBIAN directory in the package build directory.


If this directory is present, this program will automatically use po2debconf(1) to generate merged templates files that include the translations from there.

For this to work, your package should build-depend on po-debconf.

see also


This program is a part of debhelper.


Joey Hess <joeyh[:at:]debian[:dot:]org>

How can this site be more helpful to YOU ?

give  feedback