How To Install rubygem-json.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install rubygem-json.x86_64 on Amazon Linux 2.
What is rubygem-json.x86_64
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 to install rubygem-json.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-json.x86_64.
Install rubygem-json.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install rubygem-json.x86_64 using yum by running the following command:
sudo yum -y install rubygem-json.x86_64
How To Uninstall rubygem-json.x86_64 on Amazon Linux 2
To uninstall only the rubygem-json.x86_64 package we can use the following command:
sudo yum remove rubygem-json.x86_64
rubygem-json.x86_64 Package Contents on Amazon Linux 2
/usr/lib64/gems/ruby/json-1.7.7
/usr/lib64/gems/ruby/json-1.7.7/lib
/usr/lib64/gems/ruby/json-1.7.7/lib/json
/usr/lib64/gems/ruby/json-1.7.7/lib/json/ext
/usr/lib64/gems/ruby/json-1.7.7/lib/json/ext/generator.so
/usr/lib64/gems/ruby/json-1.7.7/lib/json/ext/parser.so
/usr/lib64/ruby/json
/usr/share/gems/gems/json-1.7.7
/usr/share/gems/gems/json-1.7.7/lib
/usr/share/gems/gems/json-1.7.7/lib/json
/usr/share/gems/gems/json-1.7.7/lib/json.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add
/usr/share/gems/gems/json-1.7.7/lib/json/add/bigdecimal.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/complex.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/core.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/date.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/date_time.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/exception.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/ostruct.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/range.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/rational.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/regexp.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/struct.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/symbol.rb
/usr/share/gems/gems/json-1.7.7/lib/json/add/time.rb
/usr/share/gems/gems/json-1.7.7/lib/json/common.rb
/usr/share/gems/gems/json-1.7.7/lib/json/ext.rb
/usr/share/gems/gems/json-1.7.7/lib/json/generic_object.rb
/usr/share/gems/gems/json-1.7.7/lib/json/version.rb
/usr/share/gems/specifications/json-1.7.7.gemspec
/usr/share/ruby/json
/usr/share/ruby/json.rb
References
Summary
In this tutorial we learn how to install rubygem-json.x86_64 on Amazon Linux 2 using yum.