Installation: On Debian and Ubuntu

On Debian and Ubuntu

In Debian derived distributions, you can use the official Crystal repository.

Setup repository

First you have to add the repository to your APT configuration. For easy setup just run in your command line:

curl https://dist.crystal-lang.org/apt/setup.sh | sudo bash

That will add the signing key and the repository configuration. If you prefer to do it manually, execute the following commands as root:

apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
apt-get update

Install

Once the repository is configured you're ready to install Crystal:

sudo apt-get install crystal

Upgrade

When a new Crystal version is released you can upgrade your system using:

sudo apt-get update
sudo apt-get install crystal

To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/installation/on_debian_and_ubuntu.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部