How To Install rubygem-psych on Rocky Linux 8
Introduction
In this tutorial we learn how to install rubygem-psych
on Rocky Linux 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.
We can use yum
or dnf
to install rubygem-psych
on Rocky Linux 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 Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
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 Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
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 Rocky Linux 8
To uninstall only the rubygem-psych
package we can use the following command:
sudo dnf remove rubygem-psych
rubygem-psych Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/04/2685f1cf4caf5e3445bc4bd50ddab8f2657fde
/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/33/17ac15b3e33d034b5bbfea9402115d9b81f5c3
/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/92/bbfb8a76e0b9d6cfa6c7d0fa9c7b29d9b78be8
/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/9a
/usr/lib/.build-id/9a/6d80cd360bbd7f87e5f79dfb3fb129b1426f9a
/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 Rocky Linux 8 using yum and dnf.