How To Install rubygem-psych.x86_64 on Amazon Linux 2

In this tutorial we learn how to install rubygem-psych.x86_64 in Amazon Linux 2. rubygem-psych.x86_64 is A libyaml wrapper for Ruby

Introduction

In this tutorial we learn how to install rubygem-psych.x86_64 on Amazon Linux 2.

What is rubygem-psych.x86_64

Psych is a YAML parser and emitter. Psych leverages libyaml[http emitting capabilities. In addition to wrapping libyaml, Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format.

We can use yum to install rubygem-psych.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-psych.x86_64.

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

sudo yum -y install rubygem-psych.x86_64

How To Uninstall rubygem-psych.x86_64 on Amazon Linux 2

To uninstall only the rubygem-psych.x86_64 package we can use the following command:

sudo yum remove rubygem-psych.x86_64

rubygem-psych.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/gems/ruby/psych-2.0.0
/usr/lib64/gems/ruby/psych-2.0.0/lib
/usr/lib64/gems/ruby/psych-2.0.0/lib/psych.so
/usr/lib64/ruby/psych.so
/usr/share/gems/gems/psych-2.0.0
/usr/share/gems/gems/psych-2.0.0/lib
/usr/share/gems/gems/psych-2.0.0/lib/psych
/usr/share/gems/gems/psych-2.0.0/lib/psych.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/class_loader.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/coder.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/core_ext.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/deprecated.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/exception.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/handler.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/handlers
/usr/share/gems/gems/psych-2.0.0/lib/psych/handlers/document_stream.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/handlers/recorder.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/json
/usr/share/gems/gems/psych-2.0.0/lib/psych/json/ruby_events.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/json/stream.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/json/tree_builder.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/json/yaml_events.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/alias.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/document.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/mapping.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/node.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/scalar.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/sequence.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/nodes/stream.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/omap.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/parser.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/scalar_scanner.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/set.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/stream.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/streaming.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/syntax_error.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/tree_builder.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors/depth_first.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors/emitter.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors/json_tree.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors/to_ruby.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors/visitor.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/visitors/yaml_tree.rb
/usr/share/gems/gems/psych-2.0.0/lib/psych/y.rb
/usr/share/gems/specifications/psych-2.0.0.gemspec
/usr/share/ruby/psych
/usr/share/ruby/psych.rb

References

Summary

In this tutorial we learn how to install rubygem-psych.x86_64 on Amazon Linux 2 using yum.