How To Install rubygem-json on CentOS 8

rubygem-json is This is a JSON implementation as a Ruby extension in C This is a JSON implementation as a Ruby extension in C

Introduction

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

What is rubygem-json

This is a implementation of the JSON specification according to RFC 4627. You can think of it as a low fat alternative to XML, if you want to store data to disk or transmit it over a network rather than use a verbose markup language. rubygem-json 2.1.0 107.module_el8.4.0+847+ee687b6c x86_64 91 k ruby-2.5.9-107.module_el8.4.0+847+ee687b6c.src.rpm appstream This is a JSON implementation as a Ruby extension in C http (Ruby or GPLv2) and UCD This is a implementation of the JSON specification according to RFC 4627. You can think of it as a low fat alternative to XML, if you want to store data to disk or transmit it over a network rather than use a verbose markup language.

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

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

sudo dnf -y install rubygem-json

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

sudo yum -y install rubygem-json

How To Uninstall rubygem-json on CentOS 8

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

sudo dnf remove rubygem-json

rubygem-json Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/49
/usr/lib/.build-id/49/06a06e0a8f2eb4db96d210d7fd6492db43220a
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/214e653e0ec9d5a216978724fd0914bc5f40a6
/usr/lib/gems/ruby/json-2.1.0
/usr/lib/gems/ruby/json-2.1.0/json
/usr/lib/gems/ruby/json-2.1.0/json/ext
/usr/lib/gems/ruby/json-2.1.0/json/ext/generator.so
/usr/lib/gems/ruby/json-2.1.0/json/ext/parser.so
/usr/lib/ruby/json
/usr/share/gems/gems/json-2.1.0
/usr/share/gems/gems/json-2.1.0/lib
/usr/share/gems/gems/json-2.1.0/lib/json
/usr/share/gems/gems/json-2.1.0/lib/json.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add
/usr/share/gems/gems/json-2.1.0/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/complex.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/core.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date_time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/exception.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/range.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/rational.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/regexp.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/struct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/symbol.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/common.rb
/usr/share/gems/gems/json-2.1.0/lib/json/ext.rb
/usr/share/gems/gems/json-2.1.0/lib/json/generic_object.rb
/usr/share/gems/gems/json-2.1.0/lib/json/version.rb
/usr/share/gems/specifications/json-2.1.0.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb
/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/98d248c72a86df8b1fdc8b22e98df7dbc1238d
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/82861cadfd5ad4d3370eccf4dc3976f96f12ab
/usr/lib/gems/ruby/json-2.1.0
/usr/lib/gems/ruby/json-2.1.0/json
/usr/lib/gems/ruby/json-2.1.0/json/ext
/usr/lib/gems/ruby/json-2.1.0/json/ext/generator.so
/usr/lib/gems/ruby/json-2.1.0/json/ext/parser.so
/usr/lib/ruby/json
/usr/share/gems/gems/json-2.1.0
/usr/share/gems/gems/json-2.1.0/lib
/usr/share/gems/gems/json-2.1.0/lib/json
/usr/share/gems/gems/json-2.1.0/lib/json.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add
/usr/share/gems/gems/json-2.1.0/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/complex.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/core.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date_time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/exception.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/range.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/rational.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/regexp.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/struct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/symbol.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/common.rb
/usr/share/gems/gems/json-2.1.0/lib/json/ext.rb
/usr/share/gems/gems/json-2.1.0/lib/json/generic_object.rb
/usr/share/gems/gems/json-2.1.0/lib/json/version.rb
/usr/share/gems/specifications/json-2.1.0.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb
/usr/lib/.build-id
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/032ff5b66bdaed875ca91589145e8b440e3e4d
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/5c5bd94a4ae56bc7ca757f0bd06bf04d126b09
/usr/lib64/gems/ruby/json-2.1.0
/usr/lib64/gems/ruby/json-2.1.0/json
/usr/lib64/gems/ruby/json-2.1.0/json/ext
/usr/lib64/gems/ruby/json-2.1.0/json/ext/generator.so
/usr/lib64/gems/ruby/json-2.1.0/json/ext/parser.so
/usr/lib64/ruby/json
/usr/share/gems/gems/json-2.1.0
/usr/share/gems/gems/json-2.1.0/lib
/usr/share/gems/gems/json-2.1.0/lib/json
/usr/share/gems/gems/json-2.1.0/lib/json.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add
/usr/share/gems/gems/json-2.1.0/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/complex.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/core.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date_time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/exception.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/range.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/rational.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/regexp.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/struct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/symbol.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/common.rb
/usr/share/gems/gems/json-2.1.0/lib/json/ext.rb
/usr/share/gems/gems/json-2.1.0/lib/json/generic_object.rb
/usr/share/gems/gems/json-2.1.0/lib/json/version.rb
/usr/share/gems/specifications/json-2.1.0.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb
/usr/lib/.build-id
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/bc1d1901219b7bdcf29a037b211e5ed08c0742
/usr/lib/.build-id/c9/92f3475a02dfb666065c728f10433a3d88d212
/usr/lib64/gems/ruby/json-2.1.0
/usr/lib64/gems/ruby/json-2.1.0/json
/usr/lib64/gems/ruby/json-2.1.0/json/ext
/usr/lib64/gems/ruby/json-2.1.0/json/ext/generator.so
/usr/lib64/gems/ruby/json-2.1.0/json/ext/parser.so
/usr/lib64/ruby/json
/usr/share/gems/gems/json-2.1.0
/usr/share/gems/gems/json-2.1.0/lib
/usr/share/gems/gems/json-2.1.0/lib/json
/usr/share/gems/gems/json-2.1.0/lib/json.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add
/usr/share/gems/gems/json-2.1.0/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/complex.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/core.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/date_time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/exception.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/range.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/rational.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/regexp.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/struct.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/symbol.rb
/usr/share/gems/gems/json-2.1.0/lib/json/add/time.rb
/usr/share/gems/gems/json-2.1.0/lib/json/common.rb
/usr/share/gems/gems/json-2.1.0/lib/json/ext.rb
/usr/share/gems/gems/json-2.1.0/lib/json/generic_object.rb
/usr/share/gems/gems/json-2.1.0/lib/json/version.rb
/usr/share/gems/specifications/json-2.1.0.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb

References

Summary

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