Man page - dh_clean(1)
Packages contas this manual
- dh_installcatalogs(1)
- debhelper-obsolete-compat(7)
- dh_builddeb(1)
- dh_installsystemduser(1)
- dh_auto_configure(1)
- dh_installdeb(1)
- dh_auto_test(1)
- dh_auto_build(1)
- dh_auto_install(1)
- dh_installlogrotate(1)
- dh_assistant(1)
- dh_install(1)
- dh_strip(1)
- dh_systemd_enable(1)
- dh_testdir(1)
- dh_installalternatives(1)
- dh_movetousr(1)
- dh_listpackages(1)
- dh_installsysusers(1)
- dh_shlibdeps(1)
- dh_installpam(1)
- dh_installmenu(1)
- dh_missing(1)
- dh_fixperms(1)
- dh_installtmpfiles(1)
- dh_md5sums(1)
- dh_testroot(1)
- dh_makeshlibs(1)
- dh_lintian(1)
- dh_installcron(1)
- dh_installsystemd(1)
- dh_installinit(1)
- dh_installlogcheck(1)
- dh_installinfo(1)
- dh_link(1)
- dh_installchangelogs(1)
- dh_icons(1)
- dh_installmime(1)
- dh_installmanpages(1)
- dh_bugfiles(1)
- dh_movefiles(1)
- dh_installexamples(1)
- dh_installdebconf(1)
- dh_ucf(1)
- dh_installwm(1)
- dh_installxfonts(1)
- dh_installdirs(1)
- dh_usrlocal(1)
- dh_dwz(1)
- debhelper-compat-upgrade-checklist(7)
- dh_update_autotools_config(1)
- dh_installifupdown(1)
- dh_systemd_start(1)
- dh_clean(1)
- dh_installppp(1)
- dh_auto_clean(1)
- dh(1)
- dh_compress(1)
- dh_prep(1)
- dh_gencontrol(1)
- dh_installgsettings(1)
- dh_installemacsen(1)
- dh_perl(1)
- dh_installdocs(1)
- dh_installinitramfs(1)
- dh_installman(1)
- dh_installudev(1)
- debhelper(7)
- dh_installmodules(1)
apt-get install debhelper
Available languages:
en fr pt ja deManual
| DH_CLEAN(1) | Debhelper | DH_CLEAN(1) |
NAME
dh_clean - clean up package build directories
SYNOPSIS
dh_clean [debhelper options] [-k] [-d] [-Xitem] [path ...]
DESCRIPTION
dh_clean is a debhelper program that is responsible for cleaning up. It should be the last step of the clean target and other debhelper commands generally assume that dh_clean will clean up after them.
It removes the package build directories, and removes some other
files including debian/files, and any detritus left behind by other
debhelper commands. It also removes common files and directories that should
not appear in a Debian diff:
#*# *~ DEADJOE *.orig *.rej *.SUMS __pycache__ TAGS .deps/* *.P *-stamp
It does not run "make clean" to clean up after the build process. Use dh_auto_clean(1) to do things like that.
FILES
- debian/clean
- Can list other paths to be removed.
Note that directories listed in this file must end with a trailing slash. Any content in these directories will be removed as well.
Supports substitution variables in compat 13 and later as documented in debhelper(7).
OPTIONS
- -k, --keep
- This is deprecated, use dh_prep(1) instead.
The option is removed in compat 12.
- -d, --dirs-only
- Only clean the package build directories, do not clean up any other files at all.
- -Xitem --exclude=item
- Exclude files that contain item anywhere in their filename from being deleted, even if they would normally be deleted. You may use this option multiple times to build up a list of things to exclude.
- path ...
- Delete these paths too.
Note that directories passed as arguments must end with a trailing slash. Any content in these directories will be removed as well.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
| 2025-03-29 | 13.24.2 |