macOS
brew install dtachlocal Homebrew formula metadata
sudo port install dtachMacPorts ports tree · sysutils/dtach/Portfile · 来源: api.github.com
安装
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 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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.