# Installer dtach avec Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de dtach pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:dtach
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install dtach
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dtach
```

  Preuve: MacPorts ports tree: sysutils/dtach/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dtach
```

  Preuve: Alpine Linux edge package indexes: dtach from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dtach
```

  Preuve: Debian stable package indexes: dtach from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install dtach
```

  Preuve: Fedora Rawhide package metadata: dtach from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#dtach
```

  Preuve: nixpkgs package indexes: pkgs/by-name/dt/dtach/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install dtach
```

  Preuve: openSUSE Tumbleweed package metadata: dtach from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Faits du paquet

- **Clé du paquet:** brew:dtach
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.9
- **Résumé source:** Emulates the detach feature of screen
- **Page d'accueil:** <https://dtach.sourceforge.net/>
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- dtach (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.9
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://dtach.sourceforge.net/>
- <https://github.com/crigler/dtach>
- <https://raw.githubusercontent.com/crigler/dtach/master/README>
- <https://formulae.brew.sh/api/formula/dtach.json>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - dtach - 0.9-7: normalized package name match | Debian stable package indexes: dtach from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | emulates the detach/attach feature of screen | http://dtach.sourceforge.net/
- Nix - dtach: normalized package name match | nixpkgs package indexes: pkgs/by-name/dt/dtach/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dtach - 0.9-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: dtach from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | emulates the detach/attach feature of screen | http://dtach.sourceforge.net/
- apk - dtach - 0.9-r7: normalized package name match | Alpine Linux edge package indexes: dtach from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A program that emulates the detach feature of screen | https://dtach.sourceforge.net/
- apk - dtach-doc - 0.9-r7: normalized package name match | Alpine Linux edge package indexes: dtach-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A program that emulates the detach feature of screen (documentation) | https://dtach.sourceforge.net/
- dnf - dtach - 0.9-33.fc45: normalized package name match | Fedora Rawhide package metadata: dtach from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A simple program that emulates the detach feature of screen | http://dtach.sourceforge.net
- zypper - dtach - 0.9+2.748020b-3.5: normalized package name match | openSUSE Tumbleweed package metadata: dtach from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Background processes and reattach to them | http://dtach.sourceforge.net/
- MacPorts - dtach: normalized package name match | MacPorts ports tree: sysutils/dtach/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/dtach.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dtach.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
