Skip to content

Commit c894e5b

Browse files
committed
Added install section
1 parent df94cfb commit c894e5b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

en/documentation/installation/index.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The following overview lists available installation methods
2828
for different needs and platforms.
2929

3030
* [Package Management Systems](#package-management-systems)
31+
* [Snap](#snap)
3132
* [Debian, Ubuntu](#apt)
3233
* [CentOS, Fedora, RHEL](#yum)
3334
* [Gentoo](#portage)
@@ -63,6 +64,24 @@ older versions of Ruby in their official repositories. If you would like to
6364
use the newest Ruby, make sure you use the correct package name,
6465
or use the tools described further below instead.
6566

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

6786
### apt (Debian or Ubuntu)
6887
{: #apt}

0 commit comments

Comments
 (0)