How To Install rubygem-json on Fedora 36

In this tutorial we learn how to install rubygem-json in Fedora 36. rubygem-json is A JSON implementation in Ruby

Introduction

In this tutorial we learn how to install rubygem-json on Fedora 36.

What is rubygem-json

This is a implementation of the JSON specification according to RFC 4627 in Ruby. 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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-json.

Install rubygem-json on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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 Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 Fedora 36

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

sudo dnf remove rubygem-json

rubygem-json Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/09/dddcdcfd4b7c85610b60c1e2d40f246c5c2a14
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/4a88effc520cdf950c035371dc84288096a8fd
/usr/lib64/gems/ruby/json-2.6.1
/usr/lib64/gems/ruby/json-2.6.1/gem.build_complete
/usr/lib64/gems/ruby/json-2.6.1/json
/usr/lib64/gems/ruby/json-2.6.1/json/ext
/usr/lib64/gems/ruby/json-2.6.1/json/ext/generator.so
/usr/lib64/gems/ruby/json-2.6.1/json/ext/parser.so
/usr/lib64/ruby/json
/usr/share/gems/gems/json-2.6.1
/usr/share/gems/gems/json-2.6.1/lib
/usr/share/gems/gems/json-2.6.1/lib/json
/usr/share/gems/gems/json-2.6.1/lib/json.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add
/usr/share/gems/gems/json-2.6.1/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/complex.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/core.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/date.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/date_time.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/exception.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/range.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/rational.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/regexp.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/set.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/struct.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/symbol.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/time.rb
/usr/share/gems/gems/json-2.6.1/lib/json/common.rb
/usr/share/gems/gems/json-2.6.1/lib/json/ext.rb
/usr/share/gems/gems/json-2.6.1/lib/json/generic_object.rb
/usr/share/gems/gems/json-2.6.1/lib/json/version.rb
/usr/share/gems/specifications/json-2.6.1.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb
/usr/lib/.build-id
/usr/lib/.build-id/89
/usr/lib/.build-id/89/18f44cee874dc80f0fb24674b1d96d24e1471f
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/a5aaf311b4aaedb6a83f6904154b0db71325a7
/usr/lib64/gems/ruby/json-2.6.1
/usr/lib64/gems/ruby/json-2.6.1/gem.build_complete
/usr/lib64/gems/ruby/json-2.6.1/json
/usr/lib64/gems/ruby/json-2.6.1/json/ext
/usr/lib64/gems/ruby/json-2.6.1/json/ext/generator.so
/usr/lib64/gems/ruby/json-2.6.1/json/ext/parser.so
/usr/lib64/ruby/json
/usr/share/gems/gems/json-2.6.1
/usr/share/gems/gems/json-2.6.1/CHANGES.md
/usr/share/gems/gems/json-2.6.1/LICENSE
/usr/share/gems/gems/json-2.6.1/README.md
/usr/share/gems/gems/json-2.6.1/VERSION
/usr/share/gems/gems/json-2.6.1/lib
/usr/share/gems/gems/json-2.6.1/lib/json
/usr/share/gems/gems/json-2.6.1/lib/json.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add
/usr/share/gems/gems/json-2.6.1/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/complex.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/core.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/date.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/date_time.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/exception.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/range.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/rational.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/regexp.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/set.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/struct.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/symbol.rb
/usr/share/gems/gems/json-2.6.1/lib/json/add/time.rb
/usr/share/gems/gems/json-2.6.1/lib/json/common.rb
/usr/share/gems/gems/json-2.6.1/lib/json/ext.rb
/usr/share/gems/gems/json-2.6.1/lib/json/generic_object.rb
/usr/share/gems/gems/json-2.6.1/lib/json/version.rb
/usr/share/gems/specifications/json-2.6.1.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb

References

Summary

In this tutorial we learn how to install rubygem-json on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).