Installation: On RedHat and CentOS

On RedHat and CentOS

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

Setup repository

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

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

That will add the signing key and the repository configuration. If you prefer to do it manually execute:

rpm --import https://dist.crystal-lang.org/rpm/RPM-GPG-KEY

cat > /etc/yum.repos.d/crystal.repo <<END
[crystal]
name = Crystal
baseurl = https://dist.crystal-lang.org/rpm/
END

Install

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

sudo yum install crystal

Upgrade

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

sudo yum update 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_redhat_and_centos.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部