How To Install rubygem-safe_yaml on Fedora 36

In this tutorial we learn how to install rubygem-safe_yaml in Fedora 36. rubygem-safe_yaml is Parse YAML safely

Introduction

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

What is rubygem-safe_yaml

The SafeYAML gem provides an alternative implementation of YAML.load suitable for accepting user input in Ruby applications. Unlike Ruby’s built-in implementation of YAML.load, SafeYAML’s version will not expose apps to arbitrary code execution exploits.

We can use yum or dnf to install rubygem-safe_yaml on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-safe_yaml.

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

sudo dnf -y install rubygem-safe_yaml

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

sudo yum -y install rubygem-safe_yaml

How To Uninstall rubygem-safe_yaml on Fedora 36

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

sudo dnf remove rubygem-safe_yaml

rubygem-safe_yaml Package Contents on Fedora 36

/usr/bin/safe_yaml
/usr/share/gems/gems/safe_yaml-1.0.4
/usr/share/gems/gems/safe_yaml-1.0.4/LICENSE.txt
/usr/share/gems/gems/safe_yaml-1.0.4/bin
/usr/share/gems/gems/safe_yaml-1.0.4/bin/safe_yaml
/usr/share/gems/gems/safe_yaml-1.0.4/lib
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/deep.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/libyaml_checker.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/load.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/parse
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/date.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/hexadecimal.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/parse/sexagesimal.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_handler.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/psych_resolver.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/resolver.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/safe_to_ruby_visitor.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_hack.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_node_monkeypatch.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/syck_resolver.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_boolean.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_date.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_float.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_integer.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_nil.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/to_symbol.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/transform/transformation_map.rb
/usr/share/gems/gems/safe_yaml-1.0.4/lib/safe_yaml/version.rb
/usr/share/gems/specifications/safe_yaml-1.0.4.gemspec

References

Summary

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