File tree 1 file changed +20
-0
lines changed
en/documentation/installation
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ There are several ways to install Ruby:
33
33
Here are available installation methods:
34
34
35
35
* [ Package Management Systems] ( #package-management-systems )
36
+ * [ Snap] ( #snap )
36
37
* [ Debian, Ubuntu] ( #apt )
37
38
* [ CentOS, Fedora, RHEL] ( #yum )
38
39
* [ Gentoo] ( #portage )
@@ -68,6 +69,25 @@ versions instead of the latest release. To use the latest Ruby release,
68
69
check that the package name matches its version number. Or use a
69
70
dedicated [ installer] [ installers ] .
70
71
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
+
71
91
### apt (Debian or Ubuntu)
72
92
{: #apt}
73
93
You can’t perform that action at this time.
0 commit comments