How To Install rubygem-xpath on Fedora 36

In this tutorial we learn how to install rubygem-xpath in Fedora 36. rubygem-xpath is Generate XPath expressions from Ruby

Introduction

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

What is rubygem-xpath

XPath is a Ruby DSL for generating XPath expressions.

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

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

sudo dnf -y install rubygem-xpath

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

sudo yum -y install rubygem-xpath

How To Uninstall rubygem-xpath on Fedora 36

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

sudo dnf remove rubygem-xpath

rubygem-xpath Package Contents on Fedora 36

/usr/share/gems/gems/xpath-3.2.0
/usr/share/gems/gems/xpath-3.2.0/README.md
/usr/share/gems/gems/xpath-3.2.0/lib
/usr/share/gems/gems/xpath-3.2.0/lib/xpath
/usr/share/gems/gems/xpath-3.2.0/lib/xpath.rb
/usr/share/gems/gems/xpath-3.2.0/lib/xpath/dsl.rb
/usr/share/gems/gems/xpath-3.2.0/lib/xpath/expression.rb
/usr/share/gems/gems/xpath-3.2.0/lib/xpath/literal.rb
/usr/share/gems/gems/xpath-3.2.0/lib/xpath/renderer.rb
/usr/share/gems/gems/xpath-3.2.0/lib/xpath/union.rb
/usr/share/gems/gems/xpath-3.2.0/lib/xpath/version.rb
/usr/share/gems/specifications/xpath-3.2.0.gemspec

References

Summary

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