macOS
brew install dtachlocal Homebrew formula metadata
sudo port install dtachMacPorts ports tree · sysutils/dtach/Portfile · source: api.github.com
brew
Emulates the detach feature of screen. Version 0.9 via Homebrew; verified from local package data.
install
brew install dtachlocal Homebrew formula metadata
sudo port install dtachMacPorts ports tree · sysutils/dtach/Portfile · source: api.github.com
sudo apk add dtachAlpine Linux edge package indexes · dtach · source: dl-cdn.alpinelinux.org
sudo apt install dtachDebian stable package indexes · dtach · source: deb.debian.org
sudo dnf install dtachFedora Rawhide package metadata · dtach · source: dl.fedoraproject.org
nix profile install nixpkgs#dtachnixpkgs package indexes · pkgs/by-name/dt/dtach/package.nix · source: api.github.com
sudo zypper install dtachopenSUSE Tumbleweed package metadata · dtach · source: download.opensuse.org
overview
Emulates the detach feature of screen
history
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.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
dtach | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://dtach.sourceforge.net/
install metadata
| Package key | brew:dtach |
|---|---|
| Version | 0.9 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/dtach |
| Homepage | https://dtach.sourceforge.net/ |
| Repository | https://github.com/crigler/dtach |
| Upstream docs | https://dtach.sourceforge.net/ |
| License | GPL-2.0-or-later |
| Source archive | https://downloads.sourceforge.net/project/dtach/dtach/0.9/dtach-0.9.tar.gz |
| Bottle | available (on 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 | not defined |
| Service | none declared |
registry facts
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 dtachsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.