# 安装 crystal

查看 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/crystal>
- **版本:** 1.20.2
- **来源摘要:** Fast and statically typed, compiled language with Ruby-like syntax
- **主页:** <https://crystal-lang.org/>
- **仓库:** <https://github.com/crystal-lang/crystal>
- **上游文档:** <https://crystal-lang.org/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/crystal-lang/crystal/archive/refs/tags/1.20.2.tar.gz>
- **更新:** 2026-05-16T00:16:45Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- crystal (cli)
- shards (cli)
- crystal (别名)
- shards (别名)

## 依赖

- bdw-gc
- gmp
- libyaml
- llvm
- openssl@3
- pcre2
- pkgconf

## macOS 提供的库

- libffi

## 安装行为

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

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 1.20.2
- 管理器更新时间: 2026-05-16
- 本地数据: ok
- 上游仓库: https://github.com/crystal-lang/crystal
- 检测到的最新版本: 1.20.2 (current)

## 安全说明

no executable entrypoint in the package index.

- **Geiger 风险:** green / low
- no executable entrypoint in the package index

## 相关链接

- [openssl@3](https://www.automicvault.com/pkg/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Runtime dependency declared by Homebrew.
- [gmp](https://www.automicvault.com/pkg/brew/gmp/) - Runtime dependency declared by Homebrew.
- [llvm](https://www.automicvault.com/pkg/brew/llvm/) - Runtime dependency declared by Homebrew.
- [libyaml](https://www.automicvault.com/pkg/brew/libyaml/) - Runtime dependency declared by Homebrew.
- [bdw-gc](https://www.automicvault.com/pkg/brew/bdw-gc/) - Runtime dependency declared by Homebrew.
- [amber](https://www.automicvault.com/pkg/brew/amber/) - Popular package that depends on this formula.
- [crystalline](https://www.automicvault.com/pkg/brew/crystalline/) - Popular package that depends on this formula.
- [crystal-icr](https://www.automicvault.com/pkg/brew/crystal-icr/) - Popular package that depends on this formula.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
