How To Install ruby.x86_64 on Amazon Linux 2

In this tutorial we learn how to install ruby.x86_64 in Amazon Linux 2. ruby.x86_64 is An interpreter of object-oriented scripting language

Introduction

In this tutorial we learn how to install ruby.x86_64 on Amazon Linux 2.

What is ruby.x86_64

Ruby is the interpreted scripting language for quick and easy object-oriented programming. It has many features to process text files and to do system management tasks (as in Perl). It is simple, straight-forward, and extensible.

We can use yum to install ruby.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install ruby.x86_64.

Install ruby.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install ruby.x86_64 using yum by running the following command:

sudo yum -y install ruby.x86_64

How To Uninstall ruby.x86_64 on Amazon Linux 2

To uninstall only the ruby.x86_64 package we can use the following command:

sudo yum remove ruby.x86_64

ruby.x86_64 Package Contents on Amazon Linux 2

/usr/bin/erb
/usr/bin/ruby
/usr/bin/testrb
/usr/share/doc/ruby-2.0.0.648
/usr/share/doc/ruby-2.0.0.648/COPYING
/usr/share/doc/ruby-2.0.0.648/COPYING.ja
/usr/share/doc/ruby-2.0.0.648/GPL
/usr/share/doc/ruby-2.0.0.648/LEGAL
/usr/share/man/man1/erb.1.gz
/usr/share/man/man1/ruby.1.gz

References

Summary

In this tutorial we learn how to install ruby.x86_64 on Amazon Linux 2 using yum.