# detach を Homebrew, Nix でインストール

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
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/detach>
- **バージョン:** 0.2.3
- **ソース概要:** Execute given command in detached process
- **ホームページ:** <https://inglorion.net/software/detach/>
- **上流ドキュメント:** <https://inglorion.net/software/detach/>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://inglorion.net/download/detach-0.2.3.tar.bz2>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- detach (cli)
- detach (エイリアス)

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.2.3
- ローカルデータ: OK
- 上流リポジトリ: https://inglorion.net/software/detach/
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** detach
- **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

## 他のパッケージマネージャ記録

- 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


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [reattach-to-user-namespace](https://pkg.so/ja/brew/reattach-to-user-namespace/) - Shares pkgdb curated category or tags: cli, process, process-management, system.
- [daemon](https://pkg.so/ja/brew/daemon/) - Shares pkgdb curated category or tags: cli, process-management, system, unix.
- [lockrun](https://pkg.so/ja/brew/lockrun/) - Shares pkgdb curated category or tags: cli, process-management, system, unix.
- [daemonize](https://pkg.so/ja/brew/daemonize/) - Shares pkgdb curated category or tags: cli, process-management, system, unix.
- [procs](https://pkg.so/ja/brew/procs/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [supervisor](https://pkg.so/ja/brew/supervisor/) - Shares pkgdb curated category or tags: cli, daemon, process-management, system, unix.
- [cpulimit](https://pkg.so/ja/brew/cpulimit/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [psgrep](https://pkg.so/ja/brew/psgrep/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [forever](https://pkg.so/ja/npm/forever/) - Local package facts share a topical domain. Shared terms: cli, daemon, given, management, process.

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