Linux command
debhelper 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Clean build artifacts
dh_clean
Install files to package directory
dh_install
Generate package dependencies
dh_shlibdeps
Compress documentation
dh_compress
Generate md5sums
dh_md5sums
Build package using dh sequencer
dh binary
Execute full build sequence
debian/rules binary
说明
debhelper is a collection of programs (dh_*) that automate common tasks when building Debian packages. Instead of writing shell commands in debian/rules, maintainers call debhelper commands that handle standard operations correctly. The dh command is a sequencer that runs appropriate debhelper commands in the correct order. A minimal debian/rules can be just three lines using dh, with overrides for customization. Debhelper reads configuration from debian/ directory files: install, docs, manpages, etc. This declarative approach simplifies packaging while maintaining flexibility for complex packages.
FAQ
What is the debhelper command used for?
debhelper is a collection of programs (dh_*) that automate common tasks when building Debian packages. Instead of writing shell commands in debian/rules, maintainers call debhelper commands that handle standard operations correctly. The dh command is a sequencer that runs appropriate debhelper commands in the correct order. A minimal debian/rules can be just three lines using dh, with overrides for customization. Debhelper reads configuration from debian/ directory files: install, docs, manpages, etc. This declarative approach simplifies packaging while maintaining flexibility for complex packages.
How do I run a basic debhelper example?
Run `dh_clean` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more debhelper examples?
This page includes 7 examples for debhelper, plus related commands for nearby Linux tasks.