From bb3159288b3ad3283228d8208043ca45cadd0201 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladimir=20T=C3=A1mara=20Pati=C3=B1o?= Date: Thu, 22 Oct 2020 12:18:42 -0500 Subject: [PATCH] Using ruby packages for OpenBSD --- en/documentation/installation/index.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/en/documentation/installation/index.md b/en/documentation/installation/index.md index b05f4eccf4..99c1ccb7eb 100644 --- a/en/documentation/installation/index.md +++ b/en/documentation/installation/index.md @@ -44,6 +44,7 @@ Here are available installation methods: * [Arch Linux](#pacman) * [macOS](#homebrew) * [FreeBSD](#freebsd) + * [OpenBSD](#openbsd) * [OpenIndiana](#openindiana) * [Other Distributions](#other-systems) * [Installers](#installers) @@ -180,6 +181,25 @@ to customize the build configuration options. More information about Ruby and its surrounding ecosystem on FreeBSD can be found on the [FreeBSD Ruby Project website][freebsd-ruby]. +### OpenBSD +{: #openbsd} + +OpenBSD as well as its distribution adJ, have packages for the three +major versions of Ruby. The following command allows you to see the +available versions and to install one: + +{% highlight sh %} +$ doas pkg_add ruby +{% endhighlight %} + +You can install simultanously several major versions, because their binaries +have different names (e.g. ruby27, ruby26, etc). + +The `HEAD` branch of the OpenBSD's ports collection could +have for this platform the most recent version of Ruby some days after +it is released. +See [directory lang/ruby in the most recent ports collection][openbsd-current-ruby-ports] + ### Ruby on OpenIndiana {: #openindiana} @@ -349,3 +369,4 @@ though, because the installed Ruby won't be managed by any tools. [wsl]: https://docs.microsoft.com/en-us/windows/wsl/about [asdf-vm]: https://asdf-vm.com/ [asdf-ruby]: https://github.com/asdf-vm/asdf-ruby +[openbsd-current-ruby-ports]: https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/lang/ruby/?only_with_tag=HEAD