# crystal-icr を Homebrew, Nix でインストール

crystal-icr のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:crystal-icr
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install crystal-icr
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#icr
```

  証拠: nixpkgs package indexes: pkgs/by-name/ic/icr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:crystal-icr
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/crystal-icr>
- **バージョン:** 0.9.0
- **ソース概要:** Interactive console for Crystal programming language
- **ホームページ:** <https://github.com/crystal-community/icr>
- **リポジトリ:** <https://github.com/crystal-community/icr>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/crystal-community/icr/archive/refs/tags/v0.9.0.tar.gz>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- icr (cli)
- icr (エイリアス)

## 依存関係

- bdw-gc
- crystal
- libevent
- libyaml
- openssl@3
- pcre2
- readline

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.9.0
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/crystal-community/icr
- 検出された最新: v0.9.0 (最新)
- 情報: No package-manager update timestamp was available.
## プロジェクトの歴史と使われ方

ICR, short for Interactive Crystal, is a REPL-like console for the Crystal programming language. It exists because Crystal is normally compiled, so an interactive shell has to simulate the Ruby-style irb experience by generating and running Crystal programs behind the scenes.

### プロジェクトの歴史

The official GitHub repository was created in 2016 under the crystal-community organization. Its README presents the tool as an interactive console for Crystal and credits Potapov Sergey as creator and maintainer, with later community contributors adding support for newer Crystal versions, records, require flags, syntax highlighting, and maintenance.

### 採用の歴史

ICR is a smaller companion package rather than part of Crystal's core distribution. The README documents source installation with make, use as a shard dependency, and an Arch AUR package; the supplied package metadata adds Homebrew and Nix packaging, showing that language-adjacent developer tools often get packaged separately from the compiler.

### 使われ方

ICR is used like irb for Crystal: each submitted instruction is accumulated into a generated Crystal program, executed, and presented as if only the new instruction ran. It supports requiring local files or shards from the command line and includes console commands such as paste, debug, quit, exit, and reset.

### パッケージ好きにとっての重要性

ICR is significant mostly as a packaging companion to Crystal. Its usefulness depends on matching the installed Crystal compiler, readline, and LLVM development files, so it illustrates why language ecosystems often need small auxiliary formulae beyond the main runtime.

### タイムライン

- 2016: The official GitHub repository was created.
- 2021: The repository's last pushed timestamp in the GitHub API indicates maintenance activity through the Crystal 0.x/early 1.x era.

### Related projects

- ICR is directly tied to Crystal and Shards. The README also points to inf-crystal.el as an editor integration for connecting Emacs to an ICR subprocess.

### ソース

- <https://github.com/crystal-community/icr>
- <https://api.github.com/repos/crystal-community/icr>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal

## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Nix - icr: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ic/icr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [openssl@3](https://pkg.so/ja/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pcre2](https://pkg.so/ja/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [libevent](https://pkg.so/ja/brew/libevent/) - Runtime dependency declared by Homebrew.
- [crystal](https://pkg.so/ja/brew/crystal/) - Runtime dependency declared by Homebrew.
- [bpython](https://pkg.so/ja/brew/bpython/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [ptpython](https://pkg.so/ja/brew/ptpython/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [ghcitty](https://pkg.so/ja/brew/ghcitty/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [mongosh](https://pkg.so/ja/brew/mongosh/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [ipython](https://pkg.so/ja/brew/ipython/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [mpremote](https://pkg.so/ja/brew/mpremote/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [commandbox](https://pkg.so/ja/brew/commandbox/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [evans](https://pkg.so/ja/brew/evans/) - Shares pkgdb curated category or tags: cli, developer-tools, repl.
- [crystalline](https://pkg.so/ja/brew/crystalline/) - Local package facts share a topical domain. Shared terms: bdw, bdw-gc, cli, crystal, developer.
- [thors-anvil](https://pkg.so/ja/brew/thors-anvil/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, interactive, libevent.
- [amber](https://pkg.so/ja/brew/amber/) - Local package facts share a topical domain. Shared terms: bdw, bdw-gc, cli, crystal, developer.

## Combined YAML source

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