# 使用 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
- **版本:** 12.1.2
- **来源摘要:** Multi-platform software reverse engineering framework
- **主页:** <https://github.com/NationalSecurityAgency/ghidra>
- **仓库:** <https://github.com/NationalSecurityAgency/ghidra>
- **最后更新:** 2026-06-05T21:47:28Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 12.1.2
## 项目历史与用法

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
