# 使用 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/symlinks>
- **版本:** 1.4.3
- **来源摘要:** Symbolic link maintenance utility
- **主页:** <https://github.com/brandt/symlinks>
- **仓库:** <https://github.com/brandt/symlinks>
- **许可证:** MIT
- **源码归档:** <https://github.com/brandt/symlinks/archive/refs/tags/v1.4.3.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- symlinks (cli)
- symlinks (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.4.3
- 本地数据: OK
- 上游仓库: https://github.com/brandt/symlinks
- 检测到的最新版本: v1.4.3 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [bfs](https://pkg.so/zh-hans/brew/bfs/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [fcp](https://pkg.so/zh-hans/brew/fcp/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [agedu](https://pkg.so/zh-hans/brew/agedu/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [disktype](https://pkg.so/zh-hans/brew/disktype/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [lr](https://pkg.so/zh-hans/brew/lr/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [quotatool](https://pkg.so/zh-hans/brew/quotatool/) - Shares pkgdb curated category or tags: cli, filesystem, system, unix.
- [tree](https://pkg.so/zh-hans/brew/tree/) - Shares pkgdb curated category or tags: cli, filesystem, system.
- [bash](https://pkg.so/zh-hans/brew/bash/) - Shares pkgdb curated category or tags: cli, system, unix.
- [afuse](https://pkg.so/zh-hans/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)


## 来源

- 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
