Here is the list of debhelper commands you can use. See their man
pages for additional documentation.
dh_auto_build(1)
automatically builds a package
dh_auto_clean(1)
automatically cleans up after a build
dh_auto_configure(1)
automatically configure a package prior to building
dh_auto_install(1)
automatically runs make install or similar
dh_auto_test(1)
automatically runs a package's test suites
dh_bugfiles(1)
install bug reporting customization files into package build
directories
dh_builddeb(1)
build Debian binary packages
dh_clean(1)
clean up package build directories
dh_compress(1)
compress files and fix symlinks in package build directories
dh_dwz(1)
optimize DWARF debug information in ELF binaries via dwz
dh_fixperms(1)
fix permissions of files in package build directories
dh_gencontrol(1)
generate and install control file
dh_icons(1)
Update caches of Freedesktop icons
dh_install(1)
install files into package build directories
dh_installalternatives(1)
install declarative alternative rules
dh_installcatalogs(1)
install and register SGML Catalogs
dh_installchangelogs(1)
install changelogs into package build directories
dh_installcron(1)
install cron scripts into etc/cron.*
dh_installdeb(1)
install files into the DEBIAN directory
dh_installdebconf(1)
install files used by debconf in package build directories
dh_installdirs(1)
create subdirectories in package build directories
dh_installdocs(1)
install documentation into package build directories
dh_installemacsen(1)
register an Emacs add on package
dh_installexamples(1)
install example files into package build directories
dh_installgsettings(1)
install GSettings overrides and set dependencies
dh_installifupdown(1)
install if-up and if-down hooks
dh_installinfo(1)
install info files
dh_installinit(1)
install service init files into package build directories
dh_installinitramfs(1)
install initramfs hooks and setup maintscripts
dh_installlogcheck(1)
install logcheck rulefiles into etc/logcheck/
dh_installlogrotate(1)
install logrotate config files
dh_installman(1)
install man pages into package build directories
dh_installmenu(1)
install Debian menu files into package build directories
dh_installmime(1)
install mime files into package build directories
dh_installmodules(1)
register kernel modules
dh_installpam(1)
install pam support files
dh_installppp(1)
install ppp ip-up and ip-down files
dh_installsystemd(1)
install systemd unit files
dh_installsystemduser(1)
install systemd unit files
dh_installsysusers(1)
install and integrates systemd sysusers files
dh_installtmpfiles(1)
install tmpfiles.d configuration files
dh_installudev(1)
install udev rules files
dh_installwm(1)
register a window manager
dh_installxfonts(1)
register X fonts
dh_link(1)
create symlinks in package build directories
dh_lintian(1)
install lintian override files into package build directories
dh_listpackages(1)
list binary packages debhelper will act on
dh_makeshlibs(1)
automatically create shlibs file and call dpkg-gensymbols
dh_md5sums(1)
generate DEBIAN/md5sums file
dh_missing(1)
check for missing files
dh_movefiles(1)
move files out of debian/tmp into subpackages
dh_perl(1)
calculates Perl dependencies and cleans up after MakeMaker
dh_prep(1)
perform cleanups in preparation for building a binary package
dh_shlibdeps(1)
calculate shared library dependencies
dh_strip(1)
strip executables, shared libraries, and some static
libraries
dh_systemd_enable(1)
enable/disable systemd unit files
dh_systemd_start(1)
start/stop/restart systemd unit files
dh_testdir(1)
test directory before building Debian package
dh_testroot(1)
ensure that a package is built with necessary level of root
permissions
dh_ucf(1)
register configuration files with ucf
dh_update_autotools_config(1)
Update autotools config files
dh_usrlocal(1)
migrate usr/local directories to maintainer scripts
Deprecated Commands
A few debhelper commands are deprecated and should not be used.
dh_installmanpages(1)
old-style man page installer (deprecated)
Other Commands
If a program's name starts with dh_
, and the program is not on
the above lists, then it is not part of the debhelper package,
but it should still work like the other programs described on
this page.