# 使用 Homebrew, Nix 安装 detach

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

## 安装

```sh
sudo av install brew:detach
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install detach
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#detach
```

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

## 软件包事实

- **软件包键:** brew:detach
- **软件包管理器:** Homebrew
- **版本:** 0.2.3
- **来源摘要:** Execute given command in detached process
- **主页:** <https://inglorion.net/software/detach/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- detach (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

detach is a small Unix-style command for starting another process outside the control of the current terminal. Its official page frames it as a portable utility that forks, detaches from the terminal, and then executes the requested command.

### 项目历史

Robbert Haarman's official detach page is dated 2010-12-11 and still presents the project as a minimalist command-line tool. The page offers an initial 0.1.0 source release and a later 0.2.3 release that added pidfiles, explicit stdin/stdout/stderr files, and a foreground mode.

### 采用历史

detach occupies the old-school Unix packaging niche: tiny source tarball, Makefile installation, and availability through package managers for users who want a command rather than a shell built-in. Its official documentation emphasizes portability across OpenBSD, NetBSD, GNU/Linux, and Mac OS X rather than a large plugin ecosystem.

### 使用方式

The common use case is launching a command so it survives terminal exit without depending on shell job control. The official examples compare it with setsid, disown, and nohup, and show why a standalone executable can be useful from scripts or other programs.

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

For package nerds, detach is interesting because it packages one precise process-control behavior as a tiny, portable C utility. It sits in the same mental drawer as nohup, setsid, daemon helpers, and shell job-control commands, but with a deliberately narrow interface.

### 时间线

- 2010: Official detach page dated 2010-12-11 documents the tool and source releases.
- 2010: Initial 0.1.0 release provided the minimal command-running behavior.
- 2010: Release 0.2.3 added pidfiles, stream-file options, and foreground execution.

### Related projects

- The official documentation directly compares detach with util-linux setsid, shell disown built-ins, and POSIX-style nohup.

### 来源

- <https://inglorion.net/software/detach/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - detach: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/detach/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/detach.yml](https://github.com/mxcl/pkgdb/blob/main/combined/detach.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
