How To Install rubygem-mkrf on Fedora 36
Introduction
In this tutorial we learn how to install rubygem-mkrf
on Fedora 36.
What is rubygem-mkrf
mkrf is a library for generating Rakefiles to build Ruby extension modules written in C. It is intended as a replacement for mkmf. The major difference between the two is that mkrf builds you a Rakefile instead of a Makefile. This proposed replacement to mkmf generates Rakefiles to build C Extensions.
We can use yum
or dnf
to install rubygem-mkrf
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rubygem-mkrf.
Install rubygem-mkrf 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-mkrf
using dnf
by running the following command:
sudo dnf -y install rubygem-mkrf
Install rubygem-mkrf 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-mkrf
using yum
by running the following command:
sudo yum -y install rubygem-mkrf
How To Uninstall rubygem-mkrf on Fedora 36
To uninstall only the rubygem-mkrf
package we can use the following command:
sudo dnf remove rubygem-mkrf
rubygem-mkrf Package Contents on Fedora 36
/usr/share/gems/gems/mkrf-0.2.3
/usr/share/gems/gems/mkrf-0.2.3/CHANGELOG
/usr/share/gems/gems/mkrf-0.2.3/MIT-LICENSE
/usr/share/gems/gems/mkrf-0.2.3/README
/usr/share/gems/gems/mkrf-0.2.3/lib
/usr/share/gems/gems/mkrf-0.2.3/lib/mkrf
/usr/share/gems/gems/mkrf-0.2.3/lib/mkrf.rb
/usr/share/gems/gems/mkrf-0.2.3/lib/mkrf/availability.rb
/usr/share/gems/gems/mkrf-0.2.3/lib/mkrf/generator.rb
/usr/share/gems/gems/mkrf-0.2.3/lib/mkrf/rakehelper.rb
/usr/share/gems/specifications/mkrf-0.2.3.gemspec
References
Summary
In this tutorial we learn how to install rubygem-mkrf
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).