macOS
brew install dtachlocal Homebrew formula metadata
sudo port install dtachMacPorts ports tree · sysutils/dtach/Portfile · ソース: api.github.com
brew
dtach のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install dtachlocal Homebrew formula metadata
sudo port install dtachMacPorts ports tree · sysutils/dtach/Portfile · ソース: api.github.com
sudo apk add dtachAlpine Linux edge package indexes · dtach · ソース: dl-cdn.alpinelinux.org
sudo apt install dtachDebian stable package indexes · dtach · ソース: deb.debian.org
sudo dnf install dtachFedora Rawhide package metadata · dtach · ソース: dl.fedoraproject.org
nix profile install nixpkgs#dtachnixpkgs package indexes · pkgs/by-name/dt/dtach/package.nix · ソース: api.github.com
sudo zypper install dtachopenSUSE Tumbleweed package metadata · dtach · ソース: download.opensuse.org
概要
Emulates the detach feature of screen
履歴
dtach is a tiny C program that provides the detach-and-reattach part of GNU screen without screen's terminal emulator, window management, or broader feature set. It is a classic Unix package for people who want one behavior, a Unix-domain socket, and almost nothing else.
dtach was written by Ned T. Crigler because screen did not fit his needs: he wanted detached terminal sessions without multiple terminal support, terminal emulation, stream interpretation, or a large codebase. The official README says dtach passes the raw output stream through and only processes the detach character and suspend key unless those features are disabled.
The project's official changelog records an initial SourceForge release in version 0.3, portability work in 0.4 for FreeBSD, Debian alpha, Debian SPARC, Debian PowerPC, and Solaris, redraw and process-group changes in later releases, and version 0.9 adding AIX support plus `dtach -N` and `dtach -p` modes.
The SourceForge homepage points to the GitHub repository for development, making the GitHub URL the official HTTP(S) source-control page while SourceForge remains the canonical homepage and release-download surface.
dtach became a quiet packaging staple because it solves a durable Unix problem with a tiny dependency footprint. The input package metadata records packages across Homebrew, Debian, Ubuntu, Fedora/DNF, Alpine/apk, MacPorts, Nix, and zypper ecosystems, and Homebrew still packages the 0.9 SourceForge tarball.
Its adoption is not about a fast-moving upstream. It is about stability: terminal users, rescue environments, remote shells, and minimal systems can get detach semantics without installing the heavier screen or tmux experience.
Users create or attach to sessions by naming a Unix-domain socket, for example with `dtach -A /tmp/session command`, then detach with the configured detach key and later reattach. Separate attachers can choose different detach characters, suspend handling, and redraw methods.
dtach does not preserve scrollback or screen contents, so it works best with programs that can redraw themselves. The official page calls out full-screen programs such as emacs and ircII as motivating use cases because dtach avoids screen's terminal interpretation layer.
dtach is significant because it is the purest version of a beloved package-manager category: carve one feature out of a larger tool, keep the code tiny, and let users compose it with the rest of Unix. It is the detach feature as a package.
It also remains a useful contrast point for screen, tmux, abduco, dvtm, and terminal multiplexers generally. Package nerds care because dtach marks the boundary between session persistence and full terminal multiplexing.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
dtach | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://dtach.sourceforge.net/
インストールメタデータ
| パッケージキー | brew:dtach |
|---|---|
| バージョン | 0.9 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/dtach |
| ホームページ | https://dtach.sourceforge.net/ |
| リポジトリ | https://github.com/crigler/dtach |
| 上流ドキュメント | https://dtach.sourceforge.net/ |
| ライセンス | GPL-2.0-or-later |
| ソースアーカイブ | https://downloads.sourceforge.net/project/dtach/dtach/0.9/dtach-0.9.tar.gz |
| Bottle | 利用可能 (対象 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dtach |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
dtach 0.9-7
emulates the detach/attach feature of screen
sudo apt install dtachdtach
nix profile install nixpkgs#dtachdtach 0.9-5build1
emulates the detach/attach feature of screen
sudo apt install dtachdtach 0.9-r7
A program that emulates the detach feature of screen
https://dtach.sourceforge.net/
sudo apk add dtachdtach-doc 0.9-r7
A program that emulates the detach feature of screen (documentation)
https://dtach.sourceforge.net/
sudo apk add dtach-docdtach 0.9-32.fc44
A simple program that emulates the detach feature of screen
sudo dnf install dtachdtach 0.9+2.748020b-3.3
Background processes and reattach to them
sudo zypper install dtachdtach
sudo port install dtachソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.