ruby, alpine linux,

Install Ruby on Alpine Linux

Jul 28, 2022 · 1 min read · Post a comment

Installing Ruby on Alpine Linux comes fairly quick and easy as it exists within the apk package manager. Let’s jump on the crux.

Prerequisites

  • Alpine Linux
  • sudo privileges

Install Ruby on Alpine Linux

Step 1. As always, update packages.

sudo apk update

Step 2. Install Ruby.

sudo apk add ruby

Step 3. Verify installation.

ruby --version

Output:

ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-musl]

Step 4. Also, you can use gem as well for installing ruby packages and dependencies.

gem --version

Output:

3.3.7

Conclusion

Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on Telegram.