Skip to content

Commit a64bb7b

Browse files
nopelesshsbt
authored andcommitted
Improve winget installation instructions
1 parent 887f1c3 commit a64bb7b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

en/documentation/installation/index.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,14 @@ latest version of Ruby.
225225
On Windows, you can use the [Windows Package Manager CLI](https://github.com/microsoft/winget-cli)
226226
to install Ruby:
227227

228-
{% highlight sh %}
229-
> winget install RubyInstallerTeam.Ruby
228+
{% highlight ps1 %}
229+
> winget install RubyInstallerTeam.Ruby.{MAJOR}.{MINOR}
230+
# Example
231+
> winget install RubyInstallerTeam.Ruby.3.2
232+
# To see all versions avaliable
233+
> winget search RubyInstallerTeam.Ruby
234+
# Note: if you are installing ruby for projects, you may want to install RubyWithDevKit
235+
> winget install RubyInstallerTeam.RubyWithDevKit.3.2
230236
{% endhighlight %}
231237

232238
### Chocolatey package manager for Windows

0 commit comments

Comments
 (0)