File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
en/documentation/installation Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ The following overview lists available installation methods
28
28
for different needs and platforms.
29
29
30
30
* [ Package Management Systems] ( #package-management-systems )
31
+ * [ Snap] ( #snap )
31
32
* [ Debian, Ubuntu] ( #apt )
32
33
* [ CentOS, Fedora, RHEL] ( #yum )
33
34
* [ Gentoo] ( #portage )
@@ -63,6 +64,24 @@ older versions of Ruby in their official repositories. If you would like to
63
64
use the newest Ruby, make sure you use the correct package name,
64
65
or use the tools described further below instead.
65
66
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.
66
85
67
86
### apt (Debian or Ubuntu)
68
87
{: #apt}
You can’t perform that action at this time.
0 commit comments