# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 2.4.1
- **来源摘要:** Organize software neatly under a single directory tree (e.g. /usr/local)
- **主页:** <https://www.gnu.org/software/stow/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
