dh_linktree

Create symlink trees within a Debian package

Install

All systems
curl cmd.cat/dh_linktree.sh
Debian Debian
apt-get install dh-linktree
Ubuntu
apt-get install dh-linktree
image/svg+xml Kali Linux
apt-get install dh-linktree
Windows (WSL2)
sudo apt-get update sudo apt-get install dh-linktree
Raspbian
apt-get install dh-linktree

dh-linktree

Create symlink trees within a Debian package

Many developers bundle PHP or JavaScript libraries in the software that they provide. The Debian packager must then replace those "embedded copies" with symlinks to the packaged copy of those files. This operation is not without risks. A version mismatch can be the source of bugs that are hard to track. dh_linktree is a tool that can assist you in this task. It can either unconditionnaly install a symlink tree of a given directory at the place of your choice, or it can only replace existing files with symlinks, or it can only replace existing identical files with symlinks.