EnglishFrenchSpanish

OnWorks favicon

dh_linktree - Online in the Cloud

Run dh_linktree in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command dh_linktree that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


dh_linktree - create symlink trees to embed files from other packages

SYNOPSIS


dh_linktree [debhelper options] [-A] [-Xitem] [action source destination ...]

DESCRIPTION


dh_linktree is a debhelper program that creates symlink trees in package build
directories. The symlinks points to files provided by other packages and which have to be
present during build. As such you have to put the packages providing the destination files
in the build dependencies. For any symlink it creates, it will add to ${misc:Depends} the
dependency that is required to ensure that the target of the symlink is available.

RATIONALE


This tool has been developed to handle the case of embedded libraries written in
interpreted languages (javascript, PHP, etc.). You usually want to replace the embedded
copy by the packaged one except if they are not compatible. Since both versions evolve
separately, you might have to frequently switch between the embedded version and the
packaged one.

If the embedded library had been replaced by a symlink to the top-level directory, you
would have to add code to the preinst/postinst every time that you switch from one to the
other (to replace the real directory with a symlink and vice-versa). With a symlink tree,
dpkg is doing everything by itself.

Since symlink trees are created statically at build-time, they are not very future-proof
and have a risk to miss some files introduced by a newer version of the package providing
the file tree which is duplicated. That's why the generated dependencies generally ensure
that the same upstream version be used at run-time than at build-time.

USAGE


dh_linktree accepts arguments by set of 3. One action followed by source and destination
file/directories. Symlinking files works just like dh_link but symlinking directories will
recreate the same directory hierarchy and all individual files will be turned into
symlinks.

The source files are the already existing files that will be symlinked from. The
destination files are the symlinks that will be created.

Be sure you do specify the full filename to both the source and destination files (unlike
what you would do if you were using something like ln(1)).

dh_linktree will generate symlinks that comply with Debian policy: absolute when policy
says they should be absolute, and relative links with as short a path as possible. It will
also create any subdirectories it needs to to put the symlinks in.

Note that dh_linktree will not be executed automatically by dh, you need to use dh $@
--with linktree to get it hooked in the list of dh_* commands automatically executed by
dh.

Use dh_linktree online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 2
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • 3
    Brackets
    Brackets
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    prepr...
    Download Brackets
  • 4
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • 5
    Canon EOS DIGITAL Info
    Canon EOS DIGITAL Info
    Canon doesn�t have shutter count
    included on the EXIF information of an
    image file, as opposed to Nikon and
    Pentax. There�s no official Canon based
    application ...
    Download Canon EOS DIGITAL Info
  • 6
    rEFInd
    rEFInd
    rEFInd is a fork of the rEFIt boot
    manager. Like rEFIt, rEFInd can
    auto-detect your installed EFI boot
    loaders and it presents a pretty GUI
    menu of boot option...
    Download rEFInd
  • More »

Linux commands

Ad