---
name: "dh_ucf"
section: "1"
platform: "linux"
package: "debhelper"
version: "13.24.2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dh_ucf"
---

# dh\_ucf(1)

register configuration files with ucf

## NAME

dh\_ucf - register configuration files with ucf

## SYNOPSIS

**dh\_ucf** \[*debhelper options*\] \[**-A**\] \[**-n**\] \[*file* ...\]

## DESCRIPTION

**dh\_ucf** is a debhelper program that is responsible for generating the *postinst* and *postrm* commands that register files with [**ucf**(1)](/ucf/1.md) and [**ucfr**(1)](/ucfr/1.md).

## FILES

- debian/*package*.ucf

  List pairs of source and destination files to register with ucf. Each pair should be put on its own line, with the source and destination separated by whitespace. Both source and destination must be absolute paths. The source should be a file that is provided by your package, typically in /usr/share/, while the destination is typically a file in /etc/.

  A dependency on ucf will be generated in **${misc:Depends}**.

  Supports substitution variables in compat 13 and later as documented in [**debhelper**(7)](/debhelper/7.md).

## OPTIONS

- **-A**, **--all**

  Install all files specified by command line parameters in ALL packages acted on.

- **-n**, **--no-scripts**

  Do not modify *postinst*/*postrm* scripts. Turns this command into a no-op.

- *file* ...

  Install these info files into the first package acted on. (Or in all packages if **-A** is specified).

## NOTES

Note that this command is not idempotent. [**dh\_prep**(1)](/dh_prep/1.md) should be called between invocations of this command. Otherwise, it may cause multiple instances of the same text to be added to maintainer scripts.

## SEE ALSO

[**debhelper**(7)](/debhelper/7.md)

This program is a part of debhelper.

## AUTHOR

Joey Hess \<joeyh@debian.org\> Jeroen Schot \<schot@a-eskwadraat.nl\>
