DH_INSTALLEXAMPLES(1)             Debhelper            DH_INSTALLEXAMPLES(1)

NAME         top

       dh_installexamples - install example files into package build

SYNOPSIS         top

       dh_installexamples [debhelper options] [-A] [-Xitem] [file ...]

DESCRIPTION         top

       dh_installexamples is a debhelper program that is responsible for
       installing examples into usr/share/doc/package/examples in package
       build directories.

       From debhelper compatibility level 11 on, dh_install will fall back
       to looking in debian/tmp for files, if it does not find them in the
       current directory (or wherever you've told it to look using

FILES         top

           Lists example files or directories to be installed.

OPTIONS         top

       -A, --all
           Install any files specified by command line parameters in ALL
           packages acted on.

           Look in the specified directory for files to be installed.  This
           option requires compat 11 or later (it is silently ignored in
           compat 10 or earlier).

           Note that this is not the same as the --sourcedirectory option
           used by the dh_auto_* commands. You rarely need to use this
           option, since dh_installexamples automatically looks for files in
           debian/tmp in debhelper compatibility level 11 and above.

           Set the main package for a documentation package.  This is used
           to install the documentation of the documentation package in
           /usr/share/doc/main-package as recommended by the Debian policy
           manual 3.9.7 in §12.3.

           In compat 11 (or later), this option is only useful if
           debhelper's auto-detection of the main package is wrong.  The
           option can also be used to silence a warning from debhelper when
           the auto-detection fails but the default happens to be correct.

           This option cannot be used when dh_installexamples is instructed
           to act on multiple packages.  If you need this option, you will
           generally need to combine it with -p to ensure exactly one
           package is acted on.

       -Xitem, --exclude=item
           Exclude files that contain item anywhere in their filename from
           being installed.

       file ...
           Install these files (or directories) as examples into the first
           package acted on. (Or into all packages if -A is specified.)

NOTES         top

       Note that dh_installexamples will happily copy entire directory
       hierarchies if you ask it to (similar to cp -a). If it is asked to
       install a directory, it will install the complete contents of the

SEE ALSO         top


       This program is a part of debhelper.

AUTHOR         top

       Joey Hess <>

COLOPHON         top

       This page is part of the debhelper (helper programs for debian/rules)
       project.  Information about the project can be found at [unknown --
       if you know, please contact] If you have a bug
       report for this manual page, send it to  This
       page was obtained from the project's upstream Git repository
       ⟨⟩ on 2018-10-29.  (At
       that time, the date of the most recent commit that was found in the
       repository was 2018-10-28.)  If you discover any rendering problems
       in this HTML version of the page, or you believe there is a better or
       more up-to-date source for the page, or you have corrections or
       improvements to the information in this COLOPHON (which is not part
       of the original manual page), send a mail to

11.5                             2018-10-28            DH_INSTALLEXAMPLES(1)