dh_link - Linux
Overview
dh_link is a tool used in Debian packaging to manage linking and dependencies between packages. It assists in maintaining package relationships and consistency during package builds.
Syntax
dh_link [-[aou]] [-P<package>] [-D<dependency>]
Options/Flags
- -a: Perform linking only if the linking is architecture-dependent.
- -o: Do not treat file existence as a dependency.
- -u: Update the list of dependencies in control files.
- -P
: Explicitly specify the package to create links for. - -D
: Explicitly specify the dependency package.
Examples
Create links for all packages:
dh_link
Link a specific package:
dh_link -P my-package
Update dependency list for specific dependency:
dh_link -u -D dependency-package
Common Issues
Missing link errors:
- Ensure that the correct package and dependency are specified.
- Verify that the dependency package is installed or built.
Integration
Use with checkinstall:
checkinstall -D --install=no dh_link
Related Commands
- dh_depends
- dh_auto_test
- Debian Packaging User Manual