How To Install rubygem-bigdecimal.x86_64 on Amazon Linux 2

In this tutorial we learn how to install rubygem-bigdecimal.x86_64 in Amazon Linux 2. rubygem-bigdecimal.x86_64 is BigDecimal provides arbitrary-precision floating point decimal

Introduction

In this tutorial we learn how to install rubygem-bigdecimal.x86_64 on Amazon Linux 2.

What is rubygem-bigdecimal.x86_64

Ruby provides built-in support for arbitrary precision integer arithmetic. For example 42**13 -> 1265437718438866624512 BigDecimal provides similar support for very large or very accurate floating point numbers. Decimal arithmetic is also useful for general calculation, because it provides the correct answers people expect–whereas normal binary floating point arithmetic often introduces subtle errors because of the conversion between base 10 and base 2.

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

Install rubygem-bigdecimal.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 rubygem-bigdecimal.x86_64 using yum by running the following command:

sudo yum -y install rubygem-bigdecimal.x86_64

How To Uninstall rubygem-bigdecimal.x86_64 on Amazon Linux 2

To uninstall only the rubygem-bigdecimal.x86_64 package we can use the following command:

sudo yum remove rubygem-bigdecimal.x86_64

rubygem-bigdecimal.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/gems/ruby/bigdecimal-1.2.0
/usr/lib64/gems/ruby/bigdecimal-1.2.0/lib
/usr/lib64/gems/ruby/bigdecimal-1.2.0/lib/bigdecimal.so
/usr/lib64/ruby/bigdecimal.so
/usr/share/gems/gems/bigdecimal-1.2.0
/usr/share/gems/gems/bigdecimal-1.2.0/lib
/usr/share/gems/gems/bigdecimal-1.2.0/lib/bigdecimal
/usr/share/gems/gems/bigdecimal-1.2.0/lib/bigdecimal/jacobian.rb
/usr/share/gems/gems/bigdecimal-1.2.0/lib/bigdecimal/ludcmp.rb
/usr/share/gems/gems/bigdecimal-1.2.0/lib/bigdecimal/math.rb
/usr/share/gems/gems/bigdecimal-1.2.0/lib/bigdecimal/newton.rb
/usr/share/gems/gems/bigdecimal-1.2.0/lib/bigdecimal/util.rb
/usr/share/gems/specifications/bigdecimal-1.2.0.gemspec
/usr/share/ruby/bigdecimal

References

Summary

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