# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, scoop 安装 ghidra

查看 ghidra 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:ghidra
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ghidra
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ghidra
```

  证据: MacPorts ports tree: devel/ghidra/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ghidra
```

  证据: Alpine Linux edge package indexes: ghidra from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#ghidra
```

  证据: nixpkgs package indexes: ghidra from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ghidra
```

  证据: Arch Linux sync databases: ghidra from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install ghidra
```

  证据: Chocolatey community package catalog: ghidra from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'

- Scoop (92%):

```sh
scoop install extras/ghidra
```

  证据: Scoop official bucket manifest trees: bucket/ghidra.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:ghidra
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ghidra>
- **版本:** 12.1.2
- **来源摘要:** Multi-platform software reverse engineering framework
- **主页:** <https://github.com/NationalSecurityAgency/ghidra>
- **仓库:** <https://github.com/NationalSecurityAgency/ghidra>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/NationalSecurityAgency/ghidra/archive/refs/tags/Ghidra_12.1.2_build.tar.gz>
- **最后更新:** 2026-06-05T21:47:28Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ghidraRun (cli)
- pyghidraRun (cli)
- ghidraRun (别名)
- pyghidraRun (别名)

## 依赖

- openjdk@21

## 构建依赖

- gradle
- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 12.1.2
- 管理器更新时间: 2026-06-05
- 本地数据: OK
- 上游仓库: https://github.com/NationalSecurityAgency/ghidra
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Ghidra is NSA's open-source software reverse engineering framework, combining disassembly, decompilation, graphing, scripting, collaboration, and extension development across many processor architectures and executable formats.

### 项目历史

NSA publicly released Ghidra at the 2019 RSA Conference after years of research and development aimed at difficult software reverse engineering mission problems. The project README says it was built to solve scaling and teaming problems on complex analysis efforts and to provide a customizable research platform.

### 采用历史

NSA described the public reaction as overwhelming after release, with hundreds of thousands of downloads and millions of website views in the first days. Four years later, NSA reported more than one million public downloads, use in college curricula, books and videos, operational use by technology and cybersecurity companies, and community contributions through GitHub.

### 使用方式

Practitioners use Ghidra interactively for reverse engineering compiled code and in automated modes for batch analysis. Common workflows include importing binaries, disassembling and decompiling functions, using the Sleigh processor specification language and P-code model, writing Java or Python scripts, and building extensions.

### 为什么软件包爱好者会关心

Ghidra became significant to security packagers because a high-end reverse engineering suite moved from a government internal tool to a redistributable Apache-licensed project. The official release packaging is a multi-platform zip rather than a traditional installer, which made package-manager formulas and wrappers valuable for users who prefer reproducible installs.

### 时间线

- 2019: NSA released Ghidra to the public at RSA Conference.
- 2019: The public GitHub repository and Ghidra 9.0.1 release appeared.
- 2023: NSA reported more than one million public downloads across the first four years.

### Related projects

- The Ghidra source tree includes PyGhidra, GhidraDev, Sleigh, a headless analyzer, a server component, and extension APIs for Java and Python users.

### 来源

- <https://github.com/NationalSecurityAgency/ghidra>
- <https://github.com/NationalSecurityAgency/ghidra/releases/tag/Ghidra_9.0.1_build>
- <https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/master/DevGuide.md>
- <https://raw.githubusercontent.com/NationalSecurityAgency/ghidra/master/GhidraDocs/GettingStarted.md>
- <https://www.nsa.gov/Press-Room/News-Highlights/Article/Article/1775584/ghidra-the-software-reverse-engineering-tool-youve-been-waiting-for-is-here/>
- <https://www.nsa.gov/Press-Room/News-Highlights/Article/Article/3319971/four-years-later-the-impacts-of-ghidras-public-release/>


## 安全说明

escape, surveillance, or offensive capability signal.

- **Geiger 风险:** red / 中
- escape, surveillance, or offensive capability signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** ghidra
- **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

## 其他软件包管理器记录

- Nix - ghidra: normalized package name match | nixpkgs package indexes: ghidra from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- apk - ghidra - 12.1.2-r0: normalized package name match | Alpine Linux edge package indexes: ghidra from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A Cross Platform and Open Source Electronics Design Automation Suite | https://ghidra-sre.org/
- apk - ghidra-doc - 12.1.2-r0: normalized package name match | Alpine Linux edge package indexes: ghidra-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | A Cross Platform and Open Source Electronics Design Automation Suite (documentation) | https://ghidra-sre.org/
- apk - ghidra-tutorials - 12.1.2-r0: normalized package name match | Alpine Linux edge package indexes: ghidra-tutorials from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Ghidra tutorial files | https://ghidra-sre.org/
- pacman - ghidra - 12.1.2-2: normalized package name match | Arch Linux sync databases: ghidra from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Software reverse engineering framework | https://ghidra-sre.org/
- MacPorts - ghidra: normalized package name match | MacPorts ports tree: devel/ghidra/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - ghidra: normalized package name match | Chocolatey community package catalog: ghidra from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'
- Scoop - extras/ghidra: normalized package name match | Scoop official bucket manifest trees: bucket/ghidra.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk@21](https://pkg.so/zh-hans/brew/openjdk-21/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [gradle](https://pkg.so/zh-hans/brew/gradle/) - Build dependency declared by Homebrew.
- [rizin](https://pkg.so/zh-hans/brew/rizin/) - Shares pkgdb curated category or tags: cli, disassembler, reverse-engineering, security.
- [retdec](https://pkg.so/zh-hans/brew/retdec/) - Shares pkgdb curated category or tags: cli, decompiler, reverse-engineering, security.
- [jadx](https://pkg.so/zh-hans/brew/jadx/) - Shares pkgdb curated category or tags: cli, decompiler, reverse-engineering, security.
- [radare2](https://pkg.so/zh-hans/brew/radare2/) - Shares pkgdb curated category or tags: cli, disassembler, reverse-engineering, security.
- [urh](https://pkg.so/zh-hans/brew/urh/) - Shares pkgdb curated category or tags: cli, reverse-engineering, security.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: cli, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, security.

## Combined YAML source

View the package source record on GitHub. [combined/ghidra.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ghidra.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
