Crystal availability in Centos 9

Hi,
Is there any chance that Crystal may be made available for Centos 9?

I’m using the Fedora Rawhide repo, which installed totally fine using curl -fsSL https://crystal-lang.org/install.sh | sudo bash

This is on rocky 9.

1 Like


As you can see, it is not working.

Unfortunately, OBS where we build and host our RPM packages does not support CentOS 9. So we have no simple option to add that.

As @riffraff169 mentioned, you should be able to install the package from a different but compatible repository such as Fedora Rawhide.

You can find manual installation instructions on https://software.opensuse.org//download.html?project=devel%3Alanguages%3Acrystal&package=crystal

Or you can select a repository for the installer with the environment variable DISTRO_REPO, for example execute it with sudo DISTRO_REPO="Fedora_Rawhide" bash.

Yes, the code doesn’t have an entry for Rocky, so it selected the repo based on the package manager:

dnf)
        DISTRO_REPO="Fedora_Rawhide"

So as you said, selecting the repo with DISTRO_REPO=“Fedora_Rawhide” should select that.
Yours selected that repo (which doesn’t exist), because of different code:

centos)
      _check_version_id
      DISTRO_REPO="CentOS_${VERSION_ID}"
      ;;

Which of course doesn’t exist.

1 Like

Thank you @straight-shoota & @riffraff169,
install via Fedora Rawhide Repo working.

dnf config-manager --add-repo https://download.opensuse.org/repositories/devel:languages:crystal/Fedora_Rawhide/devel:languages:crystal.repo
dnf install crystal