man > debdiff-apply(1)

DEBDIFF-APPLY(1) β€” General Commands Manual

DEBDIFF-APPLY(1)

πŸ“‹ NAME

debdiff-apply β€” apply a debdiff to a Debian source package

πŸš€ Quick Reference

Use CaseCommandDescription
πŸ“„ Apply a patch from a file to a source directory debdiff-apply /path/to/source /path/to/patch.diff Apply a debdiff file to an unpacked Debian source tree (in‑place)
πŸ“₯ Apply a patch from stdin debdiff-apply /path/to/source < patch.diff Read the debdiff from standard input
πŸ“¦ Apply a patch to a .dsc file debdiff-apply package.diff Apply the patch to a .dsc and produce a new .dsc
πŸ” Show the source version targeted by a patch debdiff-apply --source-version Print the package version that the patch was created for
🎯 Show the target version after applying a patch debdiff-apply --target-version target.dsc patch.diff Print the new version that would be generated
πŸ”Š Verbose output debdiff-apply -v package.dsc patch.diff Apply with detailed progress information

πŸ“ SYNOPSIS

debdiff-apply [options] [orig_dsc_or_dir] [patch_file]
debdiff-apply [options] < [patch_file]

πŸ“– DESCRIPTION

debdiff-apply takes a patchfile that describes the differences between two Debian source packages old and new, and applies it to a target Debian source package orig.

orig could either be the same as old or it could be different. patchfile is expected to be a unified diff between two Debian source trees, as what debdiff(1) normally generates.

Any changes to debian/changelog are dealt with specially, to avoid the conflicts that changelog diffs typically produce when applied naively. The exact behaviour may be tweaked in the future, so one should not rely on it.

If patchfile does not apply to orig, even after the special-casing of debian/changelog, no changes are made and debdiff-apply(1) will exit with a non-zero error code.

πŸ“¦ ARGUMENTS

orig_dsc_or_dir 🎯 Target to apply the patch to. This can either be an unpacked source tree, or a .dsc file. In the former case, the directory is modified in‑place; in the latter case, a second .dsc is created. Default: . patch_file πŸ“„ Patch file to apply, in the format output by debdiff(1). Default: /dev/stdin

βš™οΈ OPTIONS

-h, --help πŸ“– show this help message and exit -v, --verbose πŸ”Š Output more information -c CHANGELOG, --changelog CHANGELOG πŸ“ Path to debian/changelog; default: debian/changelog -D DISTRIBUTION, --distribution DISTRIBUTION 🌐 Distribution to use, if the patch doesn't already contain a changelog; default: experimental --repl πŸ’» Run the python REPL after processing. --source-version πŸ” Don't apply the patch; instead print out the version of the package that it is supposed to be applied to, or nothing if the patch does not specify a source version. --target-version 🎯 Don't apply the patch; instead print out the new version of the package debdiff-apply would generate, when the patch is applied to the the given target package, as specified by the other arguments.

πŸ“¦ For .dsc patch targets:

--no-clean 🧹 Don't clean temporary directories after a failure, so you can examine what failed. --quilt-refresh πŸ”„ If the building of the new source package fails, try to refresh patches using quilt(1) then try building it again. -d DIRECTORY, --directory DIRECTORY πŸ“ Extract the .dsc into this directory, which won't be cleaned up after debdiff-apply(1) exits. If not given, then it will be extracted to a temporary directory.

πŸ‘€ AUTHORS

debdiff-apply and this manual page were written by Ximin Luo <infinity0 AT debian.org>

Both are released under the GNU General Public License, version 3 or later.

πŸ”— SEE ALSO

debdiff(1)


DEBIAN β€” Debian Utilities β€” DEBDIFF-APPLY(1)

debdiff-apply(1)
DEBDIFF-APPLY(1) β€” General Commands Manual πŸ“‹ NAME πŸš€ Quick Reference πŸ“ SYNOPSIS πŸ“– DESCRIPTION πŸ“¦ ARGUMENTS βš™οΈ OPTIONS
πŸ“¦ For .dsc patch targets:
πŸ‘€ AUTHORS πŸ”— SEE ALSO

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-16 09:21 @216.73.216.208
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^