Skip to content

Commit 1b0f6c1

Browse files
committed
Added install section
1 parent 4af88f5 commit 1b0f6c1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

en/documentation/installation/index.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ There are several ways to install Ruby:
3333
Here are available installation methods:
3434

3535
* [Package Management Systems](#package-management-systems)
36+
* [Snap](#snap)
3637
* [Debian, Ubuntu](#apt)
3738
* [CentOS, Fedora, RHEL](#yum)
3839
* [Gentoo](#portage)
@@ -68,6 +69,25 @@ versions instead of the latest release. To use the latest Ruby release,
6869
check that the package name matches its version number. Or use a
6970
dedicated [installer][installers].
7071

72+
### snap (Ubuntu or other linux distribution)
73+
{: #snap}
74+
75+
snap is the package system developed by Canonical.
76+
You can use it like this.
77+
78+
{% highlight sh %}
79+
$ sudo snap install ruby --classic
80+
{% endhighlight %}
81+
82+
You can also use multiple channels. The following commands switch to Ruby 2.3:
83+
84+
{% highlight sh %}
85+
$ sudo snap switch ruby --channel=2.3/stable
86+
$ sudo snap refresh
87+
{% endhighlight %}
88+
89+
snap should install the latest stable Ruby version.
90+
7191
### apt (Debian or Ubuntu)
7292
{: #apt}
7393

0 commit comments

Comments
 (0)