Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 dtach

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install dtach

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install dtach

MacPorts ports tree · sysutils/dtach/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add dtach

Alpine Linux edge package indexes · dtach · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install dtach

Debian stable package indexes · dtach · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install dtach

Fedora Rawhide package metadata · dtach · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#dtach

nixpkgs package indexes · pkgs/by-name/dt/dtach/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install dtach

openSUSE Tumbleweed package metadata · dtach · 来源: download.opensuse.org

概览

软件包摘要

Emulates the detach feature of screen

命令和别名

  • dtach

历史

项目历史与用法

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.

时间线

  • 2004: The README copyright line begins, matching the early dtach era.
  • Version 0.3: The official changelog records the initial SourceForge release.
  • Version 0.4: Portability work adds FreeBSD, Debian alpha, Debian SPARC, Debian PowerPC, and Solaris support.
  • Version 0.9: The release adds AIX support, `dtach -N`, `dtach -p`, signal-state preservation, and socket-path fixes.
  • 2016: The README copyright line extends through 2016.
  • 2026: Homebrew still packages dtach 0.9 from SourceForge.

Related projects

  • GNU screen is the direct comparison and source of the detach feature dtach emulates.
  • tmux is the modern terminal multiplexer users often compare with dtach, though dtach intentionally avoids multiplexing features.
  • abduco and dvtm occupy nearby minimalist terminal-session territory.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 13 个平台目标。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
dtachcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.9
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://dtach.sourceforge.net/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://dtach.sourceforge.net/none 置信度

安装元数据

软件包元数据

软件包键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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namedtach
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

dtach 0.9-7

emulates the detach/attach feature of screen

http://dtach.sourceforge.net/

sudo apt install dtach
  • Section: misc
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Dtach
Debian stable package indexes · deb.debian.org · Debian stable package indexes: dtach from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

dtach

nix profile install nixpkgs#dtach
  • normalized package name match
  • 匹配方式:Dtach
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/dt/dtach/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

dtach 0.9-5build1

emulates the detach/attach feature of screen

http://dtach.sourceforge.net/

sudo apt install dtach
  • Section: universe/misc
  • Architecture: amd64
  • 1 依赖
  • normalized package name match
  • 匹配方式:Dtach
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: dtach from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

dtach 0.9-r7

A program that emulates the detach feature of screen

https://dtach.sourceforge.net/

sudo apk add dtach
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: dtach
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtach
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dtach from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

dtach-doc 0.9-r7

A program that emulates the detach feature of screen (documentation)

https://dtach.sourceforge.net/

sudo apk add dtach-doc
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: dtach
  • normalized package name match
  • 匹配方式:Dtach
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: dtach-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

dtach 0.9-32.fc44

A simple program that emulates the detach feature of screen

http://dtach.sourceforge.net

sudo dnf install dtach
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: dtach
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtach
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: dtach from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

dtach 0.9+2.748020b-3.3

Background processes and reattach to them

http://dtach.sourceforge.net/

sudo zypper install dtach
  • License: GPL-2.0-or-later
  • Category: System/Console
  • Architecture: x86_64
  • Source Package: dtach
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Dtach
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: dtach from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

dtach

sudo port install dtach
  • normalized package name match
  • 匹配方式:Dtach
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/dtach/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment