# 使用 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
- **版本:** 0.9.2
- **来源摘要:** Assembler framework: Core + bindings
- **主页:** <https://github.com/keystone-engine/keystone>
- **仓库:** <https://github.com/keystone-engine/keystone>
- **最后更新:** 2026-05-15T08:40:30-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- kstool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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

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

- 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


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