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

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

## インストール

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

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

### macOS

- Homebrew (100%):

```sh
brew install crystal
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install crystal
```

  証拠: MacPorts ports tree: lang/crystal/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add crystal
```

  証拠: Alpine Linux edge package indexes: crystal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install crystal
```

  証拠: Debian stable package indexes: crystal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- pacman (92%):

```sh
sudo pacman -S crystal
```

  証拠: Arch Linux sync databases: crystal from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#shards
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/crystal
```

  証拠: Scoop official bucket manifest trees: bucket/crystal.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id CrystalLang.Crystal -e
```

  証拠: Windows Package Manager source index: CrystalLang.Crystal from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:crystal
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.21.0
- **ソース概要:** Fast and statically typed, compiled language with Ruby-like syntax
- **ホームページ:** <https://crystal-lang.org/>
- **リポジトリ:** <https://github.com/crystal-lang/crystal>
- **最終更新:** 2026-07-19T09:37:42Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- crystal (エイリアス)
- shards (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.21.0
## プロジェクトの歴史と使われ方

Crystal is a compiled, statically type-checked programming language with Ruby-inspired syntax and a native-code toolchain. As a package, it is both a compiler/runtime and the delivery point for Shards, the distributed dependency manager used by Crystal libraries.

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

The official birthday post says Crystal became one year old on September 3, 2013, placing the project's start in 2012. The project describes itself as born and raised at Manas, with goals that combine Ruby-like syntax, static type checking without pervasive annotations, C bindings, compile-time code generation, and efficient native code generation through LLVM.

### 採用の歴史

Crystal reached its 1.0 milestone in March 2021 after many years of development, thousands of contributions, and more than 450 contributors according to the official 1.0 announcement. That release mattered to adoption because it introduced a 1.x compatibility promise for language and standard-library behavior, which is the kind of stability signal package maintainers and production users wait for.

### 使われ方

Users install the crystal compiler to build command-line tools, services, and libraries with Ruby-like syntax and native output. The official homepage highlights the standard library, fibers, C bindings, macros, and Shards; the reference and API docs are the primary documentation surfaces for everyday development.

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

Crystal is unusually package-manager-shaped for a language runtime: the official install page distinguishes official packages, system packages, and community-maintained packages, and says Homebrew is the most popular installation method. The same page lists Debian/Ubuntu, Alpine, Arch, Homebrew, Nix, Scoop, WinGet, MSYS2, FreeBSD, OpenBSD, and other routes, so downstream packaging is a central part of how users receive the language.

### タイムライン

- 2012: The project began, inferred from the official one-year birthday post dated September 4, 2013.
- 2013: The official birthday post described Crystal as similar to Ruby but compiled to native machine code with LLVM.
- 2021: Crystal 1.0 was announced with a 1.x compatibility promise.
- 2026: The official homepage release notes listed Crystal 1.20.2 on May 15, 2026.

### Related projects

- Crystal is distributed with Shards for dependencies, uses LLVM for native code generation, and supports C library bindings. Its ecosystem also includes the Crystal Forum, play.crystal-lang.org, and community tools such as ICR.

### ソース

- <https://crystal-lang.org/>
- <https://github.com/crystal-lang/crystal>
- <https://crystal-lang.org/2013/09/04/happy-birthday-crystal/>
- <https://crystal-lang.org/2021/03/22/crystal-1.0-what-to-expect/>
- <https://crystal-lang.org/install/>


## セキュリティノート

crystal に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。


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

- Debian apt - crystal - 1.14.0+dfsg-1: normalized package name match | Debian stable package indexes: crystal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | compiler of the Crystal object-oriented programming language | https://crystal-lang.org/
- Debian apt - crystal-doc - 1.14.0+dfsg-1: normalized package name match | Debian stable package indexes: crystal-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | API documentation for the Crystal object-oriented programming language | https://crystal-lang.org/
- Debian apt - crystal-samples - 1.14.0+dfsg-1: normalized package name match | Debian stable package indexes: crystal-samples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | samples for the Crystal object-oriented programming language | https://crystal-lang.org/
- Ubuntu apt - crystal - 1.11.2+dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: crystal from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | compiler of the Crystal object-oriented programming language | https://crystal-lang.org/
- Ubuntu apt - crystal-doc - 1.11.2+dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: crystal-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | API documentation for the Crystal object-oriented programming language | https://crystal-lang.org/
- Ubuntu apt - crystal-samples - 1.11.2+dfsg-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: crystal-samples from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | samples for the Crystal object-oriented programming language | https://crystal-lang.org/
- apk - crystal - 1.21.0-r0: normalized package name match | Alpine Linux edge package indexes: crystal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Crystal Programming Language | https://crystal-lang.org/
- apk - crystal-bash-completion - 1.21.0-r0: normalized package name match | Alpine Linux edge package indexes: crystal-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for crystal | https://crystal-lang.org/
- apk - crystal-doc - 1.21.0-r0: normalized package name match | Alpine Linux edge package indexes: crystal-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The Crystal Programming Language (documentation) | https://crystal-lang.org/
- apk - crystal-fish-completion - 1.21.0-r0: normalized package name match | Alpine Linux edge package indexes: crystal-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for crystal | https://crystal-lang.org/
- apk - crystal-zsh-completion - 1.21.0-r0: normalized package name match | Alpine Linux edge package indexes: crystal-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for crystal | https://crystal-lang.org/
- pacman - crystal - 1.21.0-1: normalized package name match | Arch Linux sync databases: crystal from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Crystal Programming Language | https://crystal-lang.org
- MacPorts - crystal: normalized package name match | MacPorts ports tree: lang/crystal/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/crystal: normalized package name match | Scoop official bucket manifest trees: bucket/crystal.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - CrystalLang.Crystal: normalized package name match | Windows Package Manager source index: CrystalLang.Crystal from https://cdn.winget.microsoft.com/cache/source.msix
- MacPorts - shards: installed executable or alias match | MacPorts ports tree: devel/shards/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/crystal.yml](https://github.com/mxcl/pkgdb/blob/main/combined/crystal.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
