How To Install rubygem-psych on CentOS 8

rubygem-psych is A libyaml wrapper for Ruby A libyaml wrapper for Ruby

Introduction

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

What is rubygem-psych

Psych is a YAML parser and emitter. Psych leverages libyaml[http capabilities. In addition to wrapping libyaml, Psych also knows how to serialize and de-serialize most Ruby objects to and from the YAML format. rubygem-psych 3.0.2 107.module_el8.4.0+847+ee687b6c x86_64 95 k ruby-2.5.9-107.module_el8.4.0+847+ee687b6c.src.rpm appstream A libyaml wrapper for Ruby http MIT Psych is a YAML parser and emitter. Psych leverages libyaml[http 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 or dnf to install rubygem-psych on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-psych.

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

sudo dnf -y install rubygem-psych

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

sudo yum -y install rubygem-psych

How To Uninstall rubygem-psych on CentOS 8

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

sudo dnf remove rubygem-psych

rubygem-psych Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/86
/usr/lib/.build-id/86/3be464936ed46321e9271fff026dbc3230032e
/usr/lib64/gems/ruby/psych-3.0.2
/usr/lib64/gems/ruby/psych-3.0.2/psych.so
/usr/lib64/ruby/psych.so
/usr/share/gems/gems/psych-3.0.2
/usr/share/gems/gems/psych-3.0.2/lib
/usr/share/gems/gems/psych-3.0.2/lib/psych
/usr/share/gems/gems/psych-3.0.2/lib/psych.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/class_loader.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/coder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/core_ext.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/exception.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handler.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/document_stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/recorder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/ruby_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/yaml_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/alias.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/document.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/mapping.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/node.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/scalar.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/sequence.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/omap.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/parser.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/scalar_scanner.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/set.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/streaming.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/syntax_error.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/versions.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/depth_first.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/emitter.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/json_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/to_ruby.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/visitor.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/yaml_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/y.rb
/usr/share/gems/specifications/psych-3.0.2.gemspec
/usr/share/ruby/psych
/usr/share/ruby/psych.rb
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/ca2b39c24561d0d84a53fc06810dc0d353195b
/usr/lib/gems/ruby/psych-3.0.2
/usr/lib/gems/ruby/psych-3.0.2/psych.so
/usr/lib/ruby/psych.so
/usr/share/gems/gems/psych-3.0.2
/usr/share/gems/gems/psych-3.0.2/lib
/usr/share/gems/gems/psych-3.0.2/lib/psych
/usr/share/gems/gems/psych-3.0.2/lib/psych.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/class_loader.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/coder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/core_ext.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/exception.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handler.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/document_stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/recorder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/ruby_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/yaml_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/alias.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/document.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/mapping.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/node.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/scalar.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/sequence.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/omap.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/parser.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/scalar_scanner.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/set.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/streaming.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/syntax_error.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/versions.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/depth_first.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/emitter.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/json_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/to_ruby.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/visitor.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/yaml_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/y.rb
/usr/share/gems/specifications/psych-3.0.2.gemspec
/usr/share/ruby/psych
/usr/share/ruby/psych.rb
/usr/lib/.build-id
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/1744f21c4dfb0bca2784af33fbb77550cbcfbd
/usr/lib64/gems/ruby/psych-3.0.2
/usr/lib64/gems/ruby/psych-3.0.2/psych.so
/usr/lib64/ruby/psych.so
/usr/share/gems/gems/psych-3.0.2
/usr/share/gems/gems/psych-3.0.2/lib
/usr/share/gems/gems/psych-3.0.2/lib/psych
/usr/share/gems/gems/psych-3.0.2/lib/psych.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/class_loader.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/coder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/core_ext.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/exception.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handler.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/document_stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/recorder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/ruby_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/yaml_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/alias.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/document.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/mapping.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/node.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/scalar.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/sequence.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/omap.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/parser.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/scalar_scanner.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/set.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/streaming.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/syntax_error.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/versions.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/depth_first.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/emitter.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/json_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/to_ruby.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/visitor.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/yaml_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/y.rb
/usr/share/gems/specifications/psych-3.0.2.gemspec
/usr/share/ruby/psych
/usr/share/ruby/psych.rb
/usr/lib/.build-id
/usr/lib/.build-id/d0/60727c22a50bee65f4c3fc5bde27123e170f45
/usr/lib/gems/ruby/psych-3.0.2
/usr/lib/gems/ruby/psych-3.0.2/psych.so
/usr/lib/ruby/psych.so
/usr/share/gems/gems/psych-3.0.2
/usr/share/gems/gems/psych-3.0.2/lib
/usr/share/gems/gems/psych-3.0.2/lib/psych
/usr/share/gems/gems/psych-3.0.2/lib/psych.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/class_loader.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/coder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/core_ext.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/exception.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handler.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/document_stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/handlers/recorder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/ruby_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/json/yaml_events.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/alias.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/document.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/mapping.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/node.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/scalar.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/sequence.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/nodes/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/omap.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/parser.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/scalar_scanner.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/set.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/stream.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/streaming.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/syntax_error.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/tree_builder.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/versions.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/depth_first.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/emitter.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/json_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/to_ruby.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/visitor.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/visitors/yaml_tree.rb
/usr/share/gems/gems/psych-3.0.2/lib/psych/y.rb
/usr/share/gems/specifications/psych-3.0.2.gemspec
/usr/share/ruby/psych
/usr/share/ruby/psych.rb

References

Summary

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