How To Install rubygem-gem2rpm on Fedora 36

In this tutorial we learn how to install rubygem-gem2rpm in Fedora 36. rubygem-gem2rpm is Generate rpm specfiles from gems

Introduction

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

What is rubygem-gem2rpm

Generate source rpms and rpm spec files from a Ruby Gem. The spec file tries to follow the gem as closely as possible, and be compliant with the Fedora rubygem packaging guidelines.

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

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

sudo dnf -y install rubygem-gem2rpm

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

sudo yum -y install rubygem-gem2rpm

How To Uninstall rubygem-gem2rpm on Fedora 36

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

sudo dnf remove rubygem-gem2rpm

rubygem-gem2rpm Package Contents on Fedora 36

/usr/bin/gem2rpm
/usr/share/gems/gems/gem2rpm-1.0.2
/usr/share/gems/gems/gem2rpm-1.0.2/LICENSE
/usr/share/gems/gems/gem2rpm-1.0.2/bin
/usr/share/gems/gems/gem2rpm-1.0.2/bin/gem2rpm
/usr/share/gems/gems/gem2rpm-1.0.2/lib
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/configuration.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/distro.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/gem
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/gem/dependency.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/gem/format.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/gem/package.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/gem/spec_fetcher.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/gem/specification.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/helpers.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/rpm_dependency.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/rpm_dependency_list.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/rpm_file.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/rpm_file_list.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/template.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/template_helpers.rb
/usr/share/gems/gems/gem2rpm-1.0.2/lib/gem2rpm/test_suite.rb
/usr/share/gems/gems/gem2rpm-1.0.2/templates
/usr/share/gems/gems/gem2rpm-1.0.2/templates/default.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-17-18.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-19-20.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-21-25-vagrant-plugin.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-21-25.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-26-vagrant-plugin.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-26.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-27-rawhide-vagrant-plugin.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora-27-rawhide.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/fedora.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/opensuse.spec.erb
/usr/share/gems/gems/gem2rpm-1.0.2/templates/pld.spec.erb
/usr/share/gems/specifications/gem2rpm-1.0.2.gemspec

References

Summary

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