---
name: "dh_installkpatches"
section: "1"
platform: "linux"
package: "dh-kpatches"
version: "0.99.36+nmu4"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_installkpatches"
---

# dh\_installkpatches(1)

install kernel patch into package build directories

## NAME

dh\_installkpatches - install kernel patch into package build directories

## SYNOPSIS

**dh\_installkpatches** \[ *debhelper options* \]

## DESCRIPTION

**dh\_installkpatches** is a debhelper script that reads *debian/package.kpatches* or *debian/package.kpatches.something* files describing one or several revisions of a single kernel patch, and installs them into the package build directory with customized *apply* and *unpatch* scripts.

It also sets the kpatch:Depends substitution variable, that you should use in your control file to ensure that generated material in your package get all their dependencies. The use of kpatch:Depends requires a build-dependency on version 0.99.3 or later of the **dh-kpatches** package.  Using this variable is now required, since 0.99.16 (mostly because too many people forgot to set it).

## OPTIONS

This program does not take any particular option in addition to the standard [**debhelper**(1)](/debhelper/1.md) ones.

## SEE ALSO

[**debhelper**(1)](/debhelper/1.md), [**make-kpkg**(1)](/make-kpkg/1.md).

*/usr/share/doc/dh-kpatches/dh-kpatches.html* or */usr/share/doc/dh-kpatches/dh-kpatches.pdf.gz*.

## AUTHOR

This tool and manual page were written by Yann Dirson \<dirson@debian.org\>.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.  A copy of the license can be found under */usr/share/common-licenses/FDL*.
