# dex2jar を Homebrew, chocolatey, MacPorts, Nix でインストール

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

## インストール

```sh
sudo av install brew:dex2jar
```

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

### macOS

- Homebrew (100%):

```sh
brew install dex2jar
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dex2jar
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dex2jar
```

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

### Windows

- Chocolatey (92%):

```sh
choco install dex2jar
```

  証拠: Chocolatey community package catalog: dex2jar from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.151999','cports'

## パッケージ情報

- **パッケージキー:** brew:dex2jar
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2.4
- **ソース概要:** Tools to work with Android .dex and Java .class files
- **ホームページ:** <https://github.com/pxb1988/dex2jar>
- **リポジトリ:** <https://github.com/pxb1988/dex2jar>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- d2j-apk-sign (エイリアス)
- d2j-asm-verify (エイリアス)
- d2j-baksmali (エイリアス)
- d2j-class-version-switch (エイリアス)
- d2j-decrypt-string (エイリアス)
- d2j-dex-recompute-checksum (エイリアス)
- d2j-dex-weaver (エイリアス)
- d2j-dex2jar (エイリアス)
- d2j-dex2smali (エイリアス)
- d2j-jar-access (エイリアス)
- d2j-jar-weaver (エイリアス)
- d2j-jar2dex (エイリアス)
- d2j-jar2jasmin (エイリアス)
- d2j-jasmin2jar (エイリアス)
- d2j-smali (エイリアス)
- d2j-std-apk (エイリアス)
- d2j_invoke (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2.4
## プロジェクトの歴史と使われ方

dex2jar is a command-line toolkit for working with Android Dalvik Executable files and Java class or jar files. Package users usually encounter it through d2j-dex2jar and the companion d2j-* utilities.

### プロジェクトの歴史

The official README describes dex2jar as tools for Android .dex and Java .class files and notes the project move to GitHub. It preserves links to older SourceForge, Bitbucket, and Google Code project homes, which reflects the common migration path of early Android reverse-engineering tools into GitHub-era maintenance.

The current repository organizes the project as multiple tools: dex-reader/writer, d2j-dex2jar, smali/baksmali-compatible assembly and disassembly, and additional utilities such as string decryption helpers.

### 採用の歴史

dex2jar became a familiar package in Android reverse-engineering and security-analysis workflows because it bridged Android .dex bytecode and Java tooling. Even when users later inspect output with decompilers or bytecode tools, the package often provides the first conversion step from an APK or dex file to a jar-shaped artifact.

### 使われ方

The README's example workflow builds the distribution, unpacks dex-tools, and runs d2j-dex2jar.sh against an APK path. The output is a jar file named after the input, such as apk_to_decompile-dex2jar.jar.

### パッケージ好きにとっての重要性

dex2jar is notable as a package because it installs a family of narrowly named command-line tools rather than a single binary. That makes it a classic reverse-engineering formula: many small entry points, stable scripts, and a README that doubles as the packaging-facing interface.

### タイムライン

- Early project era: README records historical homes on Google Code, SourceForge, and Bitbucket.
- GitHub era: README marks the project move to GitHub.
- 2023-10-03: GitHub release v2.4 was published.

### Related projects

- smali/baksmali is directly related because dex2jar includes compatible assembly and disassembly tools.
- Java bytecode and Android APK analysis tools are downstream or adjacent consumers of dex2jar output.

### ソース

- <https://github.com/pxb1988/dex2jar>
- <https://github.com/pxb1988/dex2jar/releases/tag/v2.4>


## セキュリティノート

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

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

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

- Nix - dex2jar: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/dex2jar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - dex2jar: normalized package name match | MacPorts ports tree: java/dex2jar/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - dex2jar: normalized package name match | Chocolatey community package catalog: dex2jar from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='9.151999','cports'


## Combined YAML source

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


## ソース

- 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
