DH_MOVEFILES(1)
π DH_MOVEFILES β the debhelper manual page, bestie edition β¨
okay so this is a page from the Debhelper manual, and the tool is called dh_movefiles. Sit down, grab a lil matcha π΅, we're moving files out of debian/tmp and into subpackages and it's gonna be so good.
πΈ NAME πΈ
dh_movefiles β move files out of debian/tmp into subpackages π¦
β¨ SYNOPSIS β¨
dh_movefiles [debhelper options] [--sourcedir=dir] [-Xitem] [file ...]
π DESCRIPTION π
So dh_movefiles is a debhelper program, and its whole thing β its entire personality β is moving files out of debian/tmp (or honestly some other directory if you're feeling spicy) and into other package build directories. π
When is this useful? Literally when your package has a Makefile that installs everything into debian/tmp, and you need to break that up into subpackages. That's the moment. That's the vibe.
π¨ bestie, real talk:dh_installis a much better program, and you are recommended to use it instead ofdh_movefiles. no cap. this one is the old faithful, not the icon.
π FILES π
debian/package.filesβ Lists the files to be moved into a package, separated by whitespace. The filenames listed should be relative todebian/tmp/. You can also list directory names, and the whole directory will be moved. π§ the whole thing. gone. relocated.
π OPTIONS π
--sourcedir=dirβ Instead of moving files out ofdebian/tmp(the default, the classic, the blueprint), this option makes it move files out of some other directory. And listen β since the entire contents of the sourcedir is moved, specifying something like--sourcedir=/is very unsafe, so to prevent mistakes, the sourcedir must be a relative filename; it cannot begin with a/. π«Ά protecting you from yourself, respectfully.-Xitem,--exclude=itemβ Exclude files that contain item anywhere in their filename from being installed. anywhere!! mid-filename, end-filename, sneaky little substring β caught. πfile ...β Lists files to move. The filenames listed should be relative todebian/tmp/. You can also list directory names, and the whole directory will be moved. It is an error to list files here unless you use-p,-i, or-ato telldh_movefileswhich subpackage to put them in. (it's giving "sir, which package??" π)
π NOTES π
Note that files are always moved out of debian/tmp by default β even if you have instructed debhelper to use a compatibility level higher than one, which does not otherwise use debian/tmp for anything at all. Like, it doesn't even look at debian/tmp normally, but here we are, still going to debian/tmp. iconic behavior honestly.
The idea behind this is that the package that is being built can be told to install into debian/tmp, and then files can be moved by dh_movefiles from that directory. Any files or directories that remain are ignored, and get deleted by dh_clean later. so don't get attached π left behind = swept up.
π₯ SEE ALSO π₯
This program is a part of debhelper. β
π AUTHOR π
Joey Hess <joeyh@debian.org>
okay and if you were wondering about the whole version vibe: this is 14.5ubuntu1, dated 2026-09-21. that's the tea, bestie β now go move those files. periodt. πβ¨π
π¦ where this page comes from
- ubuntu stonking: debhelper 14.5ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms