How To Install rubygem-bson on CentOS 8

rubygem-bson is Ruby Implementation of the BSON specification

Introduction

In this tutorial we learn how to install rubygem-bson on CentOS 8.

What is rubygem-bson

A full featured BSON specification implementation, in Ruby.

We can use yum or dnf to install rubygem-bson on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-bson.

Install rubygem-bson 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-bson using dnf by running the following command:

sudo dnf -y install rubygem-bson

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

sudo yum -y install rubygem-bson

How To Uninstall rubygem-bson on CentOS 8

To uninstall only the rubygem-bson package we can use the following command:

sudo dnf remove rubygem-bson

rubygem-bson Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/89
/usr/lib/.build-id/89/ab538886da1886fcdcd606530a8be8ee92d6cd
/usr/lib64/gems/ruby/bson-4.3.0
/usr/lib64/gems/ruby/bson-4.3.0/bson_native.so
/usr/lib64/gems/ruby/bson-4.3.0/gem.build_complete
/usr/share/gems/gems/bson-4.3.0
/usr/share/gems/gems/bson-4.3.0/LICENSE
/usr/share/gems/gems/bson-4.3.0/NOTICE
/usr/share/gems/gems/bson-4.3.0/lib
/usr/share/gems/gems/bson-4.3.0/lib/bson
/usr/share/gems/gems/bson-4.3.0/lib/bson.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/array.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/binary.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/boolean.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/code.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/code_with_scope.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/config.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/date.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/date_time.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/decimal128
/usr/share/gems/gems/bson-4.3.0/lib/bson/decimal128.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/decimal128/builder.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/document.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/environment.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/false_class.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/float.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/hash.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/int32.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/int64.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/integer.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/json.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/max_key.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/min_key.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/nil_class.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/object.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/object_id.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/open_struct.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/regexp.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/registry.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/specialized.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/string.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/symbol.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/time.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/timestamp.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/true_class.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/undefined.rb
/usr/share/gems/gems/bson-4.3.0/lib/bson/version.rb
/usr/share/gems/specifications/bson-4.3.0.gemspec

References

Summary

In this tutorial we learn how to install rubygem-bson on CentOS 8 using yum and dnf.