# 使用 Homebrew, apk, apt, MacPorts, Nix, pacman 安装 keystone

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

## 安装

```sh
sudo av install brew:keystone
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install keystone
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install keystone
```

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

### Linux

- apk (92%):

```sh
sudo apk add keystone
```

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

- Debian apt (92%):

```sh
sudo apt install keystone
```

  证据: Debian stable package indexes: keystone from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#keystone
```

  证据: nixpkgs package indexes: pkgs/by-name/ke/keystone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S keystone
```

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

## 软件包事实

- **软件包键:** brew:keystone
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/keystone>
- **版本:** 0.9.2
- **来源摘要:** Assembler framework: Core + bindings
- **主页:** <https://github.com/keystone-engine/keystone>
- **仓库:** <https://github.com/keystone-engine/keystone>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://github.com/keystone-engine/keystone/archive/refs/tags/0.9.2.tar.gz>
- **最后更新:** 2026-05-15T08:40:30-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- kstool (cli)
- kstool (别名)

## 构建依赖

- cmake
- python@3.14

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.9.2
- 管理器更新时间: 2026-05-15
- 本地数据: OK
- 上游仓库: https://github.com/keystone-engine/keystone
- 检测到的最新版本: 0.9.2 (当前)
## 项目历史与用法

Keystone Engine is a multi-architecture assembler framework created for reverse-engineering, binary instrumentation, exploit-development, and dynamic-code-generation tooling. It is commonly discussed alongside Capstone, its disassembler sibling, because Keystone fills the assembler side of the same multi-architecture tooling space.

### 项目历史

Keystone's own changelog records version 0.9 as the initial public release on May 31, 2016. The project describes itself as a lightweight, multi-platform, multi-architecture assembler framework implemented in C/C++, based on LLVM, and exposing bindings for many languages.

The 0.9.1 release on July 27, 2016 added Haskell and OCaml bindings and improved kstool and architecture support. The 0.9.2 release on June 21, 2020 focused on Python packaging, while the 0.9.2 release-candidate notes list Ethereum VM support, more language bindings, Android cross-compilation improvements, and assembly-behavior fixes across X86, Arm, Arm64, Mips, and PowerPC.

### 采用历史

Keystone gained adoption in reverse-engineering culture because it offered a reusable assembler library rather than a single command-line assembler. The repository documents language bindings for Java, Masm, C#, PowerShell, Perl, Python, NodeJS, Ruby, Go, Rust, Haskell, VB6, and OCaml, which made the engine usable from scripting environments and binary-analysis frameworks.

Package-manager coverage in this batch includes Homebrew, Debian, Ubuntu, Arch, MacPorts, Nix, and Alpine, indicating that Keystone moved beyond its upstream source tree into the normal packaging channels used by security researchers and systems developers.

### 使用方式

The CLI entry point packaged by Homebrew is kstool, while the main value of Keystone is the library API: programs call the engine to turn architecture-specific assembly text into machine-code bytes. Its multi-architecture scope makes it useful for tests, shellcode generation, binary rewriting, and educational tooling.

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

Keystone matters to package nerds because it is infrastructure for other tooling: a small command in a package manager represents a large cross-platform assembly engine, LLVM-derived internals, and a bundle of language bindings. It is also a good example of reverse-engineering tools becoming ordinary installable packages across Unix-like distributions.

### 时间线

- 2016-05-31: Keystone 0.9 initial public release.
- 2016-07-27: Keystone 0.9.1 added kstool improvements and Haskell and OCaml bindings.
- 2020-06-13: Keystone 0.9.2-rc1 added Ethereum VM support and additional bindings.
- 2020-06-21: Keystone 0.9.2 fixed Python binding packaging.

### Related projects

- Capstone is the closely related disassembly framework from the same broader tooling ecosystem. LLVM provides the machine-code infrastructure on which Keystone is based.

### 来源

- <https://formulae.brew.sh/formula/keystone>
- <https://github.com/keystone-engine/keystone>
- <https://raw.githubusercontent.com/keystone-engine/keystone/master/ChangeLog>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** keystone
- **Version Scheme:** 0
- **Revision:** 1
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - keystone - 2:27.0.0-3+deb13u4: normalized package name match | Debian stable package indexes: keystone from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack identity service | http://keystone.openstack.org/
- Debian apt - keystone-doc - 2:27.0.0-3+deb13u4: normalized package name match | Debian stable package indexes: keystone-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack identity service - documentation | http://keystone.openstack.org/
- Debian apt - python3-keystone - 2:27.0.0-3+deb13u4: normalized package name match | Debian stable package indexes: python3-keystone from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenStack identity service - library | http://keystone.openstack.org/
- Nix - keystone: normalized package name match | nixpkgs package indexes: pkgs/by-name/ke/keystone/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - keystone - 2:25.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: keystone from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | OpenStack identity service - Daemons | https://opendev.org/openstack/keystone
- Ubuntu apt - keystone-common - 2:25.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: keystone-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | OpenStack identity service - Common files | https://opendev.org/openstack/keystone
- Ubuntu apt - keystone-doc - 2:25.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: keystone-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | OpenStack identity service - Documentation | https://opendev.org/openstack/keystone
- Ubuntu apt - python3-keystone - 2:25.0.0-0ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-keystone from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | OpenStack identity service - Python 3 library | https://opendev.org/openstack/keystone
- apk - keystone - 0.9.2-r6: normalized package name match | Alpine Linux edge package indexes: keystone from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings | https://www.keystone-engine.org/
- apk - keystone-dev - 0.9.2-r6: normalized package name match | Alpine Linux edge package indexes: keystone-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings (development files) | https://www.keystone-engine.org/
- apk - keystone-python - 0.9.2-r6: normalized package name match | Alpine Linux edge package indexes: keystone-python from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | keystone python3 bindings | https://www.keystone-engine.org/
- apk - keystone-python-pyc - 0.9.2-r6: normalized package name match | Alpine Linux edge package indexes: keystone-python-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Precompiled Python bytecode for keystone-python | https://www.keystone-engine.org/
- pacman - keystone - 0.9.2-8: normalized package name match | Arch Linux sync databases: keystone from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Lightweight multi-platform, multi-architecture assembler framework | https://www.keystone-engine.org/
- MacPorts - keystone: normalized package name match | MacPorts ports tree: devel/keystone/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [sgn](https://pkg.so/zh-hans/brew/sgn/) - Popular package that depends on this formula.
- [capstone](https://pkg.so/zh-hans/brew/capstone/) - Shares pkgdb curated category or tags: cli, developer-tools, multi-architecture, reverse-engineering.
- [llvm](https://pkg.so/zh-hans/brew/llvm/) - Shares pkgdb curated category or tags: cli, developer-tools, llvm.
- [binutils](https://pkg.so/zh-hans/brew/binutils/) - Shares pkgdb curated category or tags: assembler, cli, developer-tools.
- [llvm@20](https://pkg.so/zh-hans/brew/llvm-20/) - Shares pkgdb curated category or tags: cli, developer-tools, llvm.
- [nasm](https://pkg.so/zh-hans/brew/nasm/) - Shares pkgdb curated category or tags: assembler, cli, developer-tools.
- [sourcekitten](https://pkg.so/zh-hans/brew/sourcekitten/) - Shares pkgdb curated category or tags: cli, developer-tools, framework.
- [spirv-tools](https://pkg.so/zh-hans/brew/spirv-tools/) - Shares pkgdb curated category or tags: assembler, cli, developer-tools.
- [spirv-llvm-translator](https://pkg.so/zh-hans/brew/spirv-llvm-translator/) - Shares pkgdb curated category or tags: cli, developer-tools, llvm.
- [valabind](https://pkg.so/zh-hans/brew/valabind/) - Local package facts share a topical domain. Shared terms: bindings, cli, developer, developer-tools, engineering.
- [binocle](https://pkg.so/zh-hans/brew/binocle/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, engineering, reverse.
- [biodiff](https://pkg.so/zh-hans/brew/biodiff/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, engineering, reverse.

## Combined YAML source

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