Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, MacPorts, pacman, scoop, winget, Nix 安装 crystal

查看 crystal 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install crystal

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install crystal

MacPorts ports tree · lang/crystal/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add crystal

Alpine Linux edge package indexes · crystal · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install crystal

Debian stable package indexes · crystal · 来源: deb.debian.org

Arch Linux pacman已验证 · 92%
sudo pacman -S crystal

Arch Linux sync databases · crystal · 来源: geo.mirror.pkgbuild.com

Nix已验证 · 92%
nix profile install nixpkgs#shards

nixpkgs package indexes · pkgs/by-name/sh/shards/package.nix · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/crystal

Scoop official bucket manifest trees · bucket/crystal.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id CrystalLang.Crystal -e

Windows Package Manager source index · CrystalLang.Crystal · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Fast and statically typed, compiled language with Ruby-like syntax

命令和别名

  • crystal
  • shards

历史

项目历史与用法

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.

安全态势

尚未找到受保护工具覆盖

没有找到 crystal 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 7 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
crystalcli全局可执行文件
shardscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.20.3
管理器更新时间2026-07-03
本地数据OK
上游当前
检测到的最新版本1.20.3

https://github.com/crystal-lang/crystal

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:crystal
版本1.20.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/crystal
主页https://crystal-lang.org/
仓库https://github.com/crystal-lang/crystal
上游文档https://crystal-lang.org/api/latest
许可证Apache-2.0
源码归档https://github.com/crystal-lang/crystal/archive/refs/tags/1.20.3.tar.gz
最后更新2026-07-03T09:03:45Z
Pulseupdated
依赖bdw-gc, gmp, libyaml, llvm, openssl@3, pcre2, pkgconf
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecrystal
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

crystal 1.14.0+dfsg-1

compiler of the Crystal object-oriented programming language

https://crystal-lang.org/

sudo apt install crystal
  • Section: devel
  • Architecture: amd64
  • 14 依赖
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Crystal
Debian stable package indexes · deb.debian.org · Debian stable package indexes: crystal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

crystal-doc 1.14.0+dfsg-1

API documentation for the Crystal object-oriented programming language

https://crystal-lang.org/

sudo apt install crystal-doc
  • Section: doc
  • Architecture: all
  • Source Package: crystal
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Crystal
Debian stable package indexes · deb.debian.org · Debian stable package indexes: crystal-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

crystal-samples 1.14.0+dfsg-1

samples for the Crystal object-oriented programming language

https://crystal-lang.org/

sudo apt install crystal-samples
  • Section: devel
  • Architecture: all
  • Source Package: crystal
  • normalized package name match
  • 匹配方式:Crystal
Debian stable package indexes · deb.debian.org · Debian stable package indexes: crystal-samples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

crystal 1.11.2+dfsg-1build3

compiler of the Crystal object-oriented programming language

https://crystal-lang.org/

sudo apt install crystal
  • Section: universe/devel
  • Architecture: amd64
  • 15 依赖
  • 7 可选依赖
  • normalized package name match
  • 匹配方式:Crystal
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: crystal from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

crystal-doc 1.11.2+dfsg-1build3

API documentation for the Crystal object-oriented programming language

https://crystal-lang.org/

sudo apt install crystal-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: crystal
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Crystal
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: crystal-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

crystal-samples 1.11.2+dfsg-1build3

samples for the Crystal object-oriented programming language

https://crystal-lang.org/

sudo apt install crystal-samples
  • Section: universe/devel
  • Architecture: all
  • Source Package: crystal
  • normalized package name match
  • 匹配方式:Crystal
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: crystal-samples from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

crystal 1.20.2-r0

The Crystal Programming Language

https://crystal-lang.org/

sudo apk add crystal
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: crystal
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Crystal
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: crystal from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

crystal-bash-completion 1.20.2-r0

Bash completions for crystal

https://crystal-lang.org/

sudo apk add crystal-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: crystal
  • normalized package name match
  • 匹配方式:Crystal
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: crystal-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

crystal-doc 1.20.2-r0

The Crystal Programming Language (documentation)

https://crystal-lang.org/

sudo apk add crystal-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: crystal
  • normalized package name match
  • 匹配方式:Crystal
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: crystal-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

crystal-zsh-completion 1.20.2-r0

Zsh completions for crystal

https://crystal-lang.org/

sudo apk add crystal-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: crystal
  • normalized package name match
  • 匹配方式:Crystal
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: crystal-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman95%

crystal 1.20.2-1

The Crystal Programming Language

https://crystal-lang.org

sudo pacman -S crystal
  • License: Apache-2.0
  • Architecture: x86_64
  • 4 依赖
  • 4 可选依赖
  • normalized package name match
  • 匹配方式:Crystal
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: crystal from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

crystal

sudo port install crystal
  • normalized package name match
  • 匹配方式:Crystal
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/crystal/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Scoop95%

main/crystal

scoop install main/crystal
  • normalized package name match
  • 匹配方式:Crystal
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/crystal.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

CrystalLang.Crystal

winget install --id CrystalLang.Crystal -e
  • normalized package name match
  • 匹配方式:Crystal
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: CrystalLang.Crystal from https://cdn.winget.microsoft.com/cache/source.msix
MacPorts94%

shards

sudo port install shards
  • installed executable or alias match
  • 匹配方式:Shards
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/shards/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

shards 0.19.0-1

dependency manager for the Crystal language

https://crystal-lang.org/

sudo apt install shards
  • Section: devel
  • Architecture: amd64
  • 7 依赖
  • 3 可选依赖
  • installed executable or alias match
  • 匹配方式:Shards
Debian stable package indexes · deb.debian.org · Debian stable package indexes: shards from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment