How To Install rubygem-bigdecimal on CentOS 8
Introduction
In this tutorial we learn how to install rubygem-bigdecimal
on CentOS 8.
What is rubygem-bigdecimal
Ruby provides built-in support for arbitrary precision integer arithmetic. For example 4213 -> 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. rubygem-bigdecimal 1.3.4 107.module_el8.4.0+847+ee687b6c x86_64 97 k ruby-2.5.9-107.module_el8.4.0+847+ee687b6c.src.rpm appstream BigDecimal provides arbitrary-precision floating point decimal arithmetic http Ruby or BSD Ruby provides built-in support for arbitrary precision integer arithmetic. For example 4213 -> 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 CentOS 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 CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the rubygem-bigdecimal
package we can use the following command:
sudo dnf remove rubygem-bigdecimal
rubygem-bigdecimal Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/8c38801535332ccdcb0fdbefb10b11ebbe028a
/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/76/cfb9d8ef291e3e03ed7aeeeb7c3042cda22b97
/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/d2/ce42d9b20096fb5f56dafdc9fc5eaa2e1ea684
/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/de
/usr/lib/.build-id/de/47948ccaf9a12bdc9c5f3a57f383e443dbe487
/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
References
- [rubygem-bigdecimal website](http://ruby-lang.org/ http://ruby-lang.org/)
Summary
In this tutorial we learn how to install rubygem-bigdecimal
on CentOS 8 using yum and dnf.