Automic VaultAutomic Vault

brew

Install dtach with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Emulates the detach feature of screen. Version 0.9 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install dtach

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install dtach

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

Linux

Alpine Linux apkverified · 92%
sudo apk add dtach

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

Debian aptverified · 92%
sudo apt install dtach

Debian stable package indexes · dtach · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install dtach

Fedora Rawhide package metadata · dtach · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#dtach

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

openSUSE zypperverified · 92%
sudo zypper install dtach

openSUSE Tumbleweed package metadata · dtach · source: download.opensuse.org

overview

Package summary

Emulates the detach feature of screen

Commands and aliases

  • dtach

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 13 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
dtachcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version0.9
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://dtach.sourceforge.net/

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://dtach.sourceforge.net/none confidence

install metadata

Package metadata

Package keybrew:dtach
Version0.9
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/dtach
Homepagehttps://dtach.sourceforge.net/
Repositoryhttps://github.com/crigler/dtach
Upstream docshttps://dtach.sourceforge.net/
LicenseGPL-2.0-or-later
Source archivehttps://downloads.sourceforge.net/project/dtach/dtach/0.9/dtach-0.9.tar.gz
Bottleavailable (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-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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