How To Install rubygem-bigdecimal on Rocky Linux 8
Introduction
In this tutorial we learn how to install rubygem-bigdecimal
on Rocky Linux 8.
What is rubygem-bigdecimal
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
or dnf
to install rubygem-bigdecimal
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-bigdecimal.
Install rubygem-bigdecimal on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install rubygem-bigdecimal
using dnf
by running the following command:
sudo dnf -y install rubygem-bigdecimal
Install rubygem-bigdecimal on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install rubygem-bigdecimal
using yum
by running the following command:
sudo yum -y install rubygem-bigdecimal
How To Uninstall rubygem-bigdecimal on Rocky Linux 8
To uninstall only the rubygem-bigdecimal
package we can use the following command:
sudo dnf remove rubygem-bigdecimal
rubygem-bigdecimal Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/66
/usr/lib/.build-id/66/5a73215dffc536c634c632485c4363ff4859e8
/usr/lib64/gems/ruby/bigdecimal-1.3.4
/usr/lib64/gems/ruby/bigdecimal-1.3.4/bigdecimal.so
/usr/lib64/ruby/bigdecimal.so
/usr/share/gems/gems/bigdecimal-1.3.4
/usr/share/gems/gems/bigdecimal-1.3.4/lib
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/jacobian.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/ludcmp.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/math.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/newton.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/util.rb
/usr/share/gems/specifications/bigdecimal-1.3.4.gemspec
/usr/share/ruby/bigdecimal
/usr/lib/.build-id
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/e404647f119fe3b7e0a9a9fe8083a2408c2744
/usr/lib/gems/ruby/bigdecimal-1.3.4
/usr/lib/gems/ruby/bigdecimal-1.3.4/bigdecimal.so
/usr/lib/ruby/bigdecimal.so
/usr/share/gems/gems/bigdecimal-1.3.4
/usr/share/gems/gems/bigdecimal-1.3.4/lib
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/jacobian.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/ludcmp.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/math.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/newton.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/util.rb
/usr/share/gems/specifications/bigdecimal-1.3.4.gemspec
/usr/share/ruby/bigdecimal
/usr/lib/.build-id
/usr/lib/.build-id/c7/99e9e58c36ee98cccc76dc48993dcc1c2f04af
/usr/lib/gems/ruby/bigdecimal-1.3.4
/usr/lib/gems/ruby/bigdecimal-1.3.4/bigdecimal.so
/usr/lib/ruby/bigdecimal.so
/usr/share/gems/gems/bigdecimal-1.3.4
/usr/share/gems/gems/bigdecimal-1.3.4/lib
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/jacobian.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/ludcmp.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/math.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/newton.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/util.rb
/usr/share/gems/specifications/bigdecimal-1.3.4.gemspec
/usr/share/ruby/bigdecimal
/usr/lib/.build-id
/usr/lib/.build-id/e7/3a2da4e68167b6e6a1e916f13b001d48cb97f6
/usr/lib64/gems/ruby/bigdecimal-1.3.4
/usr/lib64/gems/ruby/bigdecimal-1.3.4/bigdecimal.so
/usr/lib64/ruby/bigdecimal.so
/usr/share/gems/gems/bigdecimal-1.3.4
/usr/share/gems/gems/bigdecimal-1.3.4/lib
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/jacobian.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/ludcmp.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/math.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/newton.rb
/usr/share/gems/gems/bigdecimal-1.3.4/lib/bigdecimal/util.rb
/usr/share/gems/specifications/bigdecimal-1.3.4.gemspec
/usr/share/ruby/bigdecimal
References
Summary
In this tutorial we learn how to install rubygem-bigdecimal
on Rocky Linux 8 using yum and dnf.