macOS
brew install dtrxlocal Homebrew formula metadata
sudo port install dtrxMacPorts ports tree · archivers/dtrx/Portfile · source: api.github.com
brew
Intelligent archive extraction. Version 8.7.1 via Homebrew; verified from local package data.
install
brew install dtrxlocal Homebrew formula metadata
sudo port install dtrxMacPorts ports tree · archivers/dtrx/Portfile · source: api.github.com
sudo apk add dtrxAlpine Linux edge package indexes · dtrx · source: dl-cdn.alpinelinux.org
sudo apt install dtrxDebian stable package indexes · dtrx · source: deb.debian.org
nix profile install nixpkgs#dtrxnixpkgs package indexes · pkgs/by-name/dt/dtrx/package.nix · source: api.github.com
sudo zypper install dtrxopenSUSE Tumbleweed package metadata · dtrx · source: download.opensuse.org
overview
Intelligent archive extraction
history
dtrx, short for 'Do The Right eXtraction', is a small command-line archive extractor that tries to make archive unpacking predictable. Its point is cultural as much as technical: stop remembering the right `tar`, `unzip`, `cpio`, or decompressor flags and run one command.
The current dtrx-py repository describes itself as a copy of Brett Smith's original dtrx project, with all credit attributed to the original author. The maintained Python 3 fork exists because the original Python 2-era package became difficult to keep in Linux distributions, with the README specifically citing Ubuntu 20.04+ removal from default package archives as motivation.
dtrx has a long tail in Unix package managers: Homebrew, Debian/Ubuntu, Alpine, MacPorts, Nix, and openSUSE-style packaging all carry or have carried it. The modern dtrx-py project publishes releases to PyPI and GitHub to keep the tool installable for Python 3 systems.
Users run `dtrx archive.tar.gz` or equivalent archive names and let the tool choose extraction behavior. Its attraction is avoiding accidental directory clutter, wrong flags, or inconsistent behavior across archive formats.
dtrx is a classic package-nerd utility: tiny, opinionated, and memorable because it wraps a messy Unix tool surface into one command. The Python 2 to Python 3 maintenance story also mirrors a common distribution-maintenance pattern, where useful old scripts survive through community continuation projects.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
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 |
|---|---|---|---|
dtrx | 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://pypi.org/project/dtrx/
install metadata
| Package key | brew:dtrx |
|---|---|
| Version | 8.7.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/dtrx |
| Homepage | https://pypi.org/project/dtrx/ |
| Repository | https://github.com/dtrx-py/dtrx |
| Upstream docs | https://github.com/dtrx-py/dtrx#readme |
| License | GPL-3.0-or-later |
| Source archive | https://files.pythonhosted.org/packages/12/c2/e678320a0051cbbe5de91d1836998bac858086852a135441d7d0bfddc1c1/dtrx-8.7.1.tar.gz |
| Dependencies | p7zip, python@3.14, xz |
| Uses from macOS | bzip2, unzip |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | dtrx |
| 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.
dtrx 8.5.3-3
intelligently extract multiple archive types
https://github.com/dtrx-py/dtrx
sudo apt install dtrxdtrx
nix profile install nixpkgs#dtrxdtrx 8.5.3-1
intelligently extract multiple archive types
https://github.com/dtrx-py/dtrx
sudo apt install dtrxdtrx 8.5.3-r2
Do The Right eXtraction
http://www.brettcsmith.org/2007/dtrx/
sudo apk add dtrxdtrx-pyc 8.5.3-r2
Precompiled Python bytecode for dtrx
http://www.brettcsmith.org/2007/dtrx/
sudo apk add dtrx-pycdtrx 8.5.3-1.5
Intelligent Archive Extraction Tool
https://brettcsmith.org/2007/dtrx/
sudo zypper install dtrxdtrx
sudo port install dtrxsource 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.