インストール
On OpenSUSE and SUSE Linux Enterprise (SLE)
On OpenSUSE, Crystal can be installed from the official repository hosted on the Open Build Service using Zypper. Snapcraft is also available.
リポジトリの設定
Configure the repository in Zypper:
For OpenSUSE Tumbleweed :
sudo zypper ar -f https://download.opensuse.org/repositories/devel:/languages:/crystal/openSUSE_Tumbleweed/devel:languages:crystal.repoFor OpenSUSE Leap 15.2:
sudo zypper ar -f https://download.opensuse.org/repositories/devel:/languages:/crystal/openSUSE_Leap_15.2/devel:languages:crystal.repoインストール
リポジトリの設定が完了すれば、Crystal はインストールできます。
sudo zypper --gpg-auto-import-keys install crystalアップグレード
When a new Crystal version is released you can upgrade Crystal using the default update command of your distribution:
On OpenSUSE Tumbleweed :
sudo zypper dupOn OpenSUSE Leap :
sudo zypper upRepo change
If you used the old bintray repo, you may need to switch repos to keep updating correctly
Add the new repo then
On Tumbleweed :
sudo zypper dup --from https://download.opensuse.org/repositories/devel:/languages:/crystal/openSUSE_Tumbleweed/ --allow-vendor-change
sudo zypper rr https://dl.bintray.com/crystal/rpm/all/x86_64/stableLeap 15.2 :
sudo zypper dup --from https://download.opensuse.org/repositories/devel:/languages:/crystal/openSUSE_Leap_15.2/ --allow-vendor-change
sudo zypper rr https://dl.bintray.com/crystal/rpm/all/x86_64/stableSnapcraft を使う
Crystal の snap は classic な制限環境下を要求します。snapd がインストールしてあれば、Crystal をインストールする準備は万端です。
sudo snap install crystal --classic
最新のバージョンを edge チャンネルを使ってインストールすることもできます。
sudo snap install crystal --classic --edge
より詳しい情報は Crystal の snapcraft のページを参照してください。