# Install symlinks with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Symbolic link maintenance utility. Version 1.4.3 via Homebrew; verified from local package data. Also installable with debian: sudo apt install symlinks.

## Install

```sh
sudo av install brew:symlinks
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install symlinks
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install symlinks
```

  Evidence: MacPorts ports tree: sysutils/symlinks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add symlinks
```

  Evidence: Alpine Linux edge package indexes: symlinks from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install symlinks
```

  Evidence: Debian stable package indexes: symlinks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install symlinks
```

  Evidence: Fedora Rawhide package metadata: symlinks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#symlinks
```

  Evidence: nixpkgs package indexes: pkgs/by-name/sy/symlinks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S symlinks
```

  Evidence: Arch Linux sync databases: symlinks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:symlinks
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/symlinks>
- **Version:** 1.4.3
- **Source summary:** Symbolic link maintenance utility
- **Homepage:** <https://github.com/brandt/symlinks>
- **Repository:** <https://github.com/brandt/symlinks>
- **License:** MIT
- **Source archive:** <https://github.com/brandt/symlinks/archive/refs/tags/v1.4.3.tar.gz>
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- symlinks (cli)
- symlinks (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 1.4.3
- Local data: ok
- Upstream repository: https://github.com/brandt/symlinks
- Upstream latest detected: v1.4.3 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

symlinks is a small Unix filesystem maintenance utility for scanning and fixing symbolic links. It is classic package-manager material: one C utility, one man page, no service, no config, and a job that is useful on real filesystems.

### Project history

The official README says symlinks scans directories for symbolic links and identifies dangling, relative, absolute, messy, and other-filesystem links. It can also convert absolute links to relative links within a filesystem.

The project credits Mark Lord as the creator and J. Brandt Buckley as maintainer. Its changelog records incremental Unix-maintenance work such as shortening redundant paths, messy-link fixes, Fedora patches, Mac OS X compatibility, and a later LFS bug fix.

### Adoption history

The input package metadata lists symlinks across Homebrew, Debian, Ubuntu, Fedora/DNF, Alpine, Arch, MacPorts, Nix, and other package managers. That breadth fits a small administrative utility: distributions can ship it with minimal policy surface and users can reach for it during filesystem cleanup.

### How it is used

The README documents scanning recursively with `symlinks -r`, showing all links with `symlinks -rv`, and converting absolute links to relative links with `symlinks -rc`. It is usually used directly from a shell against a target directory.

### Why package nerds care

symlinks matters to package nerds because it helps inspect the kind of filesystem state that package managers create and preserve: trees full of links, relocatable paths, broken build artifacts, and cross-filesystem references. It is also a good example of the tiny, durable Unix utilities that survive because they do one maintenance job clearly.

### Timeline

- v1.2: Added link shortening for redundant path elements.
- v1.3: Added more messy-link fixes and an `-o` flag for other-filesystem links.
- v1.4: Incorporated Fedora patches.
- v1.4-1: Added Mac OS X compatibility.
- v1.4.3: Fixed an LFS support bug affecting 32-bit systems.

### Related projects

- symlinks is adjacent to standard Unix filesystem tools such as `find`, `ln`, and package-manager link farms, but it specializes in reporting and optionally rewriting symbolic links rather than general file traversal.

### Sources

- <https://github.com/brandt/symlinks/blob/master/Readme.md>
- <https://github.com/brandt/symlinks/blob/master/symlinks.8>
- input source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** symlinks
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - symlinks - 1.4-5+b1: normalized package name match | Debian stable package indexes: symlinks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | scan/change symbolic links
- Nix - symlinks: normalized package name match | nixpkgs package indexes: pkgs/by-name/sy/symlinks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - symlinks - 1.4-4: normalized package name match | Ubuntu 24.04 LTS package indexes: symlinks from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | scan/change symbolic links
- apk - symlinks - 1.4.3-r0: normalized package name match | Alpine Linux edge package indexes: symlinks from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Symbolic link maintenance utility | https://github.com/brandt/symlinks
- apk - symlinks-doc - 1.4.3-r0: normalized package name match | Alpine Linux edge package indexes: symlinks-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Symbolic link maintenance utility (documentation) | https://github.com/brandt/symlinks
- dnf - symlinks - 1.7-15.fc45: normalized package name match | Fedora Rawhide package metadata: symlinks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A utility which maintains a system's symbolic links | http://ibiblio.org/pub/Linux/utils/file/
- pacman - symlinks - 1.4.3-4: normalized package name match | Arch Linux sync databases: symlinks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Symbolic link maintenance utility | https://github.com/brandt/symlinks
- MacPorts - symlinks: normalized package name match | MacPorts ports tree: sysutils/symlinks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/brew-utility-packages/) - Matched Homebrew package provider.
- [bfs](https://pkg.so/brew/bfs/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [fcp](https://pkg.so/brew/fcp/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [agedu](https://pkg.so/brew/agedu/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [disktype](https://pkg.so/brew/disktype/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [lr](https://pkg.so/brew/lr/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [quotatool](https://pkg.so/brew/quotatool/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [tree](https://pkg.so/brew/tree/) - Shares pkgdb curated category or tags: cli, filesystem, system.
- [bash](https://pkg.so/brew/bash/) - Shares pkgdb curated category or tags: cli, system, unix.
- [afuse](https://pkg.so/brew/afuse/) - Local package facts share a topical domain. Shared terms: cli, filesystem, system.

## Combined YAML source

View the package source record on GitHub. [combined/symlinks.yml](https://github.com/mxcl/pkgdb/blob/main/combined/symlinks.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
