Automic VaultAutomic Vault

brew

Install lndir with Homebrew, dnf, MacPorts, Nix, zypper

Create a shadow directory of symbolic links to another directory tree. Version 1.0.5 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install lndir

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install lndir

MacPorts ports tree · x11/lndir/Portfile · source: api.github.com

Linux

Fedora dnfverified · 92%
sudo dnf install imake

Fedora Rawhide package metadata · imake · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#lndir

nixpkgs package indexes · pkgs/by-name/ln/lndir/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install lndir

openSUSE Tumbleweed package metadata · lndir · source: download.opensuse.org

overview

Package summary

Create a shadow directory of symbolic links to another directory tree

Commands and aliases

  • lndir

history

Project history and usage

lndir is an X.Org utility that creates a shadow directory tree made of symbolic links to another source tree. It is a small build-support tool from the X11/X.Org world, historically useful when building the same source checkout for multiple machines or configurations.

Project history

The official manual describes lndir as a program that makes a shadow copy of a directory tree, where files are symbolic links back to the original source tree. X.Org build documentation for X11R6.8 recommended this shadow-tree workflow to keep source directories unmodified and support builds for different operating systems or architectures.

In the modular X.Org tree, lndir lives under util/lndir. X.Org's module guidelines describe the util module as a home for modular-tree build tools and legacy build tools from the monolithic tree, with lndir listed alongside utilities such as imake, gccmakedep, and makedepend.

Adoption history

lndir's adoption is mostly historical and specialist: it mattered to X11 and X.Org builders, distro maintainers, and developers who wanted out-of-tree builds before modern build systems made that workflow routine. Its standalone packaging in Homebrew and other systems preserves that utility without requiring the larger imake package.

The X.Org release directory shows lndir split out as an individual util tarball beginning in the modular release era, with releases from 1.0.1 in 2006 through 1.0.5 in 2024. The freedesktop cgit mirror shows the active upstream mirror and recent maintenance commits.

How it is used

A user creates an empty build directory and runs lndir against the source tree. The result is a parallel directory tree where source files are links and generated objects can live separately. Re-running lndir adds new links and checks existing ones, but deleted source files can leave stale symlinks that may need cleanlinks or a fresh shadow tree.

The tool has no project-level configuration or credentials. Its behavior is driven by command-line options such as -silent, -ignorelinks, and -withrevinfo.

Why package nerds care

lndir is interesting precisely because it is small and archaic in a useful way. It is a fossil from the X11 build culture that still does one filesystem job cleanly, and package managers keep it available for scripts and users that remember the shadow-directory workflow.

For package nerds, lndir also illustrates the X.Org modularization story: pieces that once lived inside a monolithic source tree became tiny independently released tarballs with their own version streams.

Timeline

  • X11R6 era: lndir is documented as part of X source-tree build workflows.
  • 2004: X11R6.8 documentation recommends lndir-based shadow build trees.
  • 2006: X.Org publishes lndir 1.0.1 as an individual util release.
  • 2024: X.Org publishes lndir 1.0.5.
  • 2025: freedesktop cgit mirror shows recent maintenance commits for options and manual-page edits.

Related projects

  • X.Org util modules such as imake, makedepend, gccmakedep, and util-macros belong to the same historical build-tool family.
  • cleanlinks is commonly mentioned with lndir because it removes stale symbolic links in shadow trees.
  • Modern out-of-tree build systems such as CMake and Meson solve related build-directory separation problems without symlink forests.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 10 platform targets.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
lndircliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.0.5
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://gitlab.freedesktop.org/xorg/util/lndir

install metadata

Package metadata

Package keybrew:lndir
Version1.0.5
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/lndir
Homepagehttps://gitlab.freedesktop.org/xorg/util/lndir
Repositoryhttps://gitlab.freedesktop.org/xorg/util/lndir
Upstream docshttps://gitlab.freedesktop.org/xorg/util/lndir
LicenseMIT-open-group
Source archivehttps://www.x.org/releases/individual/util/lndir-1.0.5.tar.xz
Build dependenciespkgconf, xorgproto
Bottleavailable (on arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelndir
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

lndir

nix profile install nixpkgs#lndir
  • normalized package name match
  • Matched by: Lndir
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ln/lndir/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

imake 1.0.10-6.fc44

imake source code configuration and build system

http://www.x.org

sudo dnf install imake
  • License: MIT-open-group AND HPND
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: imake
  • 5 dependencies
  • 12 provides
  • normalized package name match
  • Matched by: Lndir
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: imake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

lndir 1.0.5-1.6

Utility to create a shadow directory of symbolic links to another directory tree

https://xorg.freedesktop.org/

sudo zypper install lndir
  • License: MIT
  • Category: Development/Tools/Building
  • Architecture: x86_64
  • Source Package: lndir
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Lndir
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: lndir from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

lndir

sudo port install lndir
  • normalized package name match
  • Matched by: Lndir
MacPorts ports tree · api.github.com · MacPorts ports tree: x11/lndir/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment