How To Install rubygem-mercenary on Fedora 36

In this tutorial we learn how to install rubygem-mercenary in Fedora 36. rubygem-mercenary is An easier way to build your command-line scripts in Ruby

Introduction

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

What is rubygem-mercenary

Lightweight and flexible library for writing command-line apps in Ruby.

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

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

sudo dnf -y install rubygem-mercenary

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

sudo yum -y install rubygem-mercenary

How To Uninstall rubygem-mercenary on Fedora 36

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

sudo dnf remove rubygem-mercenary

rubygem-mercenary Package Contents on Fedora 36

/usr/share/doc/rubygem-mercenary
/usr/share/doc/rubygem-mercenary/History.markdown
/usr/share/doc/rubygem-mercenary/README.markdown
/usr/share/gems/gems/mercenary-0.4.0
/usr/share/gems/gems/mercenary-0.4.0/.rubocop.yml
/usr/share/gems/gems/mercenary-0.4.0/.rubocop_todo.yml
/usr/share/gems/gems/mercenary-0.4.0/Gemfile
/usr/share/gems/gems/mercenary-0.4.0/examples
/usr/share/gems/gems/mercenary-0.4.0/examples/help_dialogue.rb
/usr/share/gems/gems/mercenary-0.4.0/examples/logging.rb
/usr/share/gems/gems/mercenary-0.4.0/examples/trace.rb
/usr/share/gems/gems/mercenary-0.4.0/lib
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary.rb
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary/option.rb
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary/presenter.rb
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary/program.rb
/usr/share/gems/gems/mercenary-0.4.0/lib/mercenary/version.rb
/usr/share/gems/gems/mercenary-0.4.0/spec
/usr/share/gems/gems/mercenary-0.4.0/spec/command_spec.rb
/usr/share/gems/gems/mercenary-0.4.0/spec/option_spec.rb
/usr/share/gems/gems/mercenary-0.4.0/spec/presenter_spec.rb
/usr/share/gems/gems/mercenary-0.4.0/spec/program_spec.rb
/usr/share/gems/gems/mercenary-0.4.0/spec/spec_helper.rb
/usr/share/gems/specifications/mercenary-0.4.0.gemspec
/usr/share/licenses/rubygem-mercenary
/usr/share/licenses/rubygem-mercenary/LICENSE

References

Summary

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