# dtrx を Homebrew, apk, apt, MacPorts, Nix, zypper でインストール

dtrx のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:dtrx
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install dtrx
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dtrx
```

  証拠: MacPorts ports tree: archivers/dtrx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dtrx
```

  証拠: Alpine Linux edge package indexes: dtrx from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install dtrx
```

  証拠: Debian stable package indexes: dtrx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#dtrx
```

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

- zypper (92%):

```sh
sudo zypper install dtrx
```

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

## パッケージ情報

- **パッケージキー:** brew:dtrx
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/dtrx>
- **バージョン:** 8.7.1
- **ソース概要:** Intelligent archive extraction
- **ホームページ:** <https://pypi.org/project/dtrx/>
- **上流ドキュメント:** <https://pypi.org/project/dtrx/>
- **ライセンス:** GPL-3.0-or-later
- **ソースアーカイブ:** <https://files.pythonhosted.org/packages/12/c2/e678320a0051cbbe5de91d1836998bac858086852a135441d7d0bfddc1c1/dtrx-8.7.1.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- dtrx (cli)
- dtrx (エイリアス)

## 依存関係

- p7zip
- python@3.14
- xz

## macOS 提供ライブラリ

- bzip2
- unzip

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 all

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 8.7.1
- ローカルデータ: OK
- 上流リポジトリ: https://pypi.org/project/dtrx/
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2007: Original dtrx homepage published by Brett Smith.
- 2020: dtrx-py GitHub repository created to carry Python 3 patches.
- 2020s: dtrx-py releases are tagged and published to PyPI.

### Related projects

- Related tools include `tar`, `unzip`, `cpio`, `p7zip`, `unar`, and distribution archive helper scripts. The maintained project is directly related to Brett Smith's original dtrx repository.

### ソース

- <https://github.com/dtrx-py/dtrx>
- <https://pypi.org/project/dtrx/>
- <http://www.brettcsmith.org/2007/dtrx/>
- <https://formulae.brew.sh/api/formula/dtrx.json>


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## ソースデータベース詳細

- **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:** stable

## 他のパッケージマネージャ記録

- Debian apt - dtrx - 8.5.3-3: normalized package name match | Debian stable package indexes: dtrx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | intelligently extract multiple archive types | https://github.com/dtrx-py/dtrx
- Nix - dtrx: normalized package name match | nixpkgs package indexes: pkgs/by-name/dt/dtrx/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - dtrx - 8.5.3-1: normalized package name match | Ubuntu 24.04 LTS package indexes: dtrx from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | intelligently extract multiple archive types | https://github.com/dtrx-py/dtrx
- apk - dtrx - 8.5.3-r2: normalized package name match | Alpine Linux edge package indexes: dtrx from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Do The Right eXtraction | http://www.brettcsmith.org/2007/dtrx/
- apk - dtrx-pyc - 8.5.3-r2: normalized package name match | Alpine Linux edge package indexes: dtrx-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for dtrx | http://www.brettcsmith.org/2007/dtrx/
- zypper - dtrx - 8.5.3-1.6: normalized package name match | openSUSE Tumbleweed package metadata: dtrx from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Intelligent Archive Extraction Tool | https://brettcsmith.org/2007/dtrx/
- MacPorts - dtrx: normalized package name match | MacPorts ports tree: archivers/dtrx/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Package publisher tools](https://pkg.so/ja/package-publishers/) - Belongs to a package publishing or registry command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://pkg.so/ja/archive-compression-tools/) - Matched archive or compression metadata.
- [xz](https://pkg.so/ja/brew/xz/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/ja/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [p7zip](https://pkg.so/ja/brew/p7zip/) - Runtime dependency declared by Homebrew.
- [gnu-tar](https://pkg.so/ja/brew/gnu-tar/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [libzip](https://pkg.so/ja/brew/libzip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [unar](https://pkg.so/ja/brew/unar/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [squashfs](https://pkg.so/ja/brew/squashfs/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [gzip](https://pkg.so/ja/brew/gzip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [innoextract](https://pkg.so/ja/brew/innoextract/) - Shares pkgdb curated category or tags: archive, cli, extraction, system.
- [borgbackup](https://pkg.so/ja/brew/borgbackup/) - Shares pkgdb curated category or tags: archive, cli, compression, system.

## Combined YAML source

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


## ソース

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