On Red Hat
In Red Hat derived distributions, you can use the official Crystal repository. Linuxbrew is also available.
First you have to add the repository to your YUM configuration. For easy setup just run in your command line:
That will add the signing key and the repository configuration. If you prefer to do it manually execute:
Once the repository is configured you’re ready to install Crystal:
When a new Crystal version is released you can upgrade your system using:
If you have Linuxbrew installed you’re ready to install Crystal:
If you’re planning to contribute to the language itself you might find useful to install LLVM as well. So replace the last line with: