# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman 安装 symlinks

查看 symlinks 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install symlinks
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install symlinks
```

  证据: 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
```

  证据: 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
```

  证据: 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
```

  证据: Fedora Rawhide package metadata: symlinks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:symlinks
- **软件包管理器:** Homebrew
- **版本:** 1.4.3
- **来源摘要:** Symbolic link maintenance utility
- **主页:** <https://github.com/brandt/symlinks>
- **仓库:** <https://github.com/brandt/symlinks>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- symlinks (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.4.3
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

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


## 来源

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