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

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

## 安装

```sh
sudo av install brew:stow
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stow
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stow
```

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

### Linux

- apk (92%):

```sh
sudo apk add stow
```

  证据: Alpine Linux edge package indexes: stow from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install stow
```

  证据: Debian stable package indexes: stow from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install stow
```

  证据: Fedora Rawhide package metadata: stow 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#stow
```

  证据: nixpkgs package indexes: pkgs/by-name/st/stow/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S stow
```

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

- zypper (92%):

```sh
sudo zypper install stow
```

  证据: openSUSE Tumbleweed package metadata: stow from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:stow
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/stow>
- **版本:** 2.4.1
- **来源摘要:** Organize software neatly under a single directory tree (e.g. /usr/local)
- **主页:** <https://www.gnu.org/software/stow/>
- **上游文档:** <https://www.gnu.org/software/stow/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://ftpmirror.gnu.org/gnu/stow/stow-2.4.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- chkstow (cli)
- stow (cli)
- chkstow (别名)
- stow (别名)

## macOS 提供的库

- perl

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.4.1
- 本地数据: OK
- 上游仓库: https://www.gnu.org/software/stow/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

GNU Stow is a long-running GNU command-line tool for managing software or data trees by creating symlink farms into a shared target directory. Its modern package-manager interest comes from the way it preserves package ownership without a package database, and from its later adoption by dotfile users.

### 项目历史

GNU's people page identifies Bob Glickstein as the author of GNU Stow. The Stow manual explains the original problem: administrators commonly built software such as Perl and Emacs under /usr/local, then needed a reliable way to upgrade or remove one package without confusing its files with another package's files.

Stow's design keeps each package in its own private tree and makes the files appear in a common tree through symbolic links. The manual says Stow was inspired by Carnegie Mellon's Depot, but deliberately avoided Depot's database state and destructive synchronization risks.

### 采用历史

The Stow manual notes that more sophisticated system and language package managers reduced its role as a general software installer, naming rpm, dpkg, Nix, Guix, gem, pip, and npm as examples. It also records Stow's continued use for per-user configuration management, especially when paired with version control.

Homebrew, Debian, Fedora, Arch, Nix, MacPorts, and other package-manager entries in the supplied source facts show that Stow remains widely packaged as a small Unix tool rather than as an application platform.

### 使用方式

Users arrange package directories under a stow directory and run the stow CLI to create, delete, or restow symlinks into the target tree. In dotfile workflows, the target is commonly the user's home directory, and Stow's --dotfiles behavior supports package trees that avoid hidden filenames internally.

The official manual documents resource files in .stowrc and ~/.stowrc, plus package-local and global ignore files, making it convenient to encode repeated CLI options and ignore rules.

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

Stow matters to package-manager culture because it is a minimal, inspectable alternative to database-backed ownership tracking: the filesystem layout is the metadata. That makes it attractive for source-built /usr/local trees, home-directory dotfiles, and users who want reversible installs without a full package manager.

It also gives package nerds a classic example of Unix composition: symlinks, predictable directory structure, and version control cover most of the workflow without a daemon, registry, or lockfile format.

### 时间线

- 1990s: Bob Glickstein authored GNU Stow.
- 2024-04-07: GNU Stow 2.4.0 released with dotfiles-related fixes.
- 2024-09-08: GNU Stow 2.4.1 released with additional --dotfiles and ignore-list fixes.

### Related projects

- Carnegie Mellon Depot influenced Stow's problem space, but Stow's manual contrasts its stateless symlink approach with Depot's database-based synchronization.
- Modern package managers such as rpm, dpkg, Nix, Guix, pip, gem, and npm cover many software-installation cases that Stow once addressed, while Stow remains common in dotfile-manager workflows.

### 来源

- <https://www.gnu.org/people/people.html>
- <https://www.gnu.org/software/stow/>
- <https://www.gnu.org/software/stow/manual/stow.html>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.stowrc, .stowrc, ~/.stow-global-ignore, .stow-local-ignore
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stow
- **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 - stow - 2.4.1-2: normalized package name match | Debian stable package indexes: stow from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Organizer for /usr/local software packages | https://www.gnu.org/software/stow/
- Nix - stow: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stow/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - stow - 2.3.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: stow from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Organizer for /usr/local software packages | https://www.gnu.org/software/stow/
- apk - stow - 2.4.1-r1: normalized package name match | Alpine Linux edge package indexes: stow from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Manage installation of multiple softwares in the same directory tree | https://www.gnu.org/software/stow/
- apk - stow-doc - 2.4.1-r1: normalized package name match | Alpine Linux edge package indexes: stow-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Manage installation of multiple softwares in the same directory tree (documentation) | https://www.gnu.org/software/stow/
- dnf - stow - 2.4.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: stow from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Manage the installation of software packages from source | https://www.gnu.org/software/stow/stow.html
- dnf - stow-doc - 2.4.1-5.fc45: normalized package name match | Fedora Rawhide package metadata: stow-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Documentation for Stow | https://www.gnu.org/software/stow/stow.html
- pacman - stow - 2.4.1-1: normalized package name match | Arch Linux sync databases: stow from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Manage installation of multiple softwares in the same directory tree | https://www.gnu.org/software/stow/
- zypper - stow - 2.4.1-1.9: normalized package name match | openSUSE Tumbleweed package metadata: stow from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Manage the installation of software packages from source | https://gnu.org/software/stow/
- zypper - stow-doc - 2.4.1-1.9: normalized package name match | openSUSE Tumbleweed package metadata: stow-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for GNU Stow | https://gnu.org/software/stow/
- MacPorts - stow: normalized package name match | MacPorts ports tree: sysutils/stow/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Package ecosystem packages](https://pkg.so/zh-hans/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [findutils](https://pkg.so/zh-hans/brew/findutils/) - Shares pkgdb curated category or tags: cli, filesystem, gnu, system.
- [convmv](https://pkg.so/zh-hans/brew/convmv/) - Shares pkgdb curated category or tags: cli, filesystem, perl, system.
- [renameutils](https://pkg.so/zh-hans/brew/renameutils/) - Shares pkgdb curated category or tags: cli, filesystem, gnu, system.
- [direvent](https://pkg.so/zh-hans/brew/direvent/) - Shares pkgdb curated category or tags: cli, filesystem, gnu, system.
- [coreutils](https://pkg.so/zh-hans/brew/coreutils/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [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, gnu, system.
- [glibc](https://pkg.so/zh-hans/brew/glibc/) - Shares pkgdb curated category or tags: cli, gnu, system.
- [mtools](https://pkg.so/zh-hans/brew/mtools/) - Local package facts share a topical domain. Shared terms: cli, filesystem, management, system.
- [shepherd](https://pkg.so/zh-hans/brew/shepherd/) - Local package facts share a topical domain. Shared terms: cli, gnu, management, system.

## Combined YAML source

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


## 来源

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