# keystone を Homebrew, apk, apt, MacPorts, Nix, pacman でインストール

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
