How To Install rubygem-rails on Fedora 36

In this tutorial we learn how to install rubygem-rails in Fedora 36. rubygem-rails is Full-stack web application framework

Introduction

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

What is rubygem-rails

Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.

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

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

sudo dnf -y install rubygem-rails

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

sudo yum -y install rubygem-rails

How To Uninstall rubygem-rails on Fedora 36

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

sudo dnf remove rubygem-rails

rubygem-rails Package Contents on Fedora 36

/usr/share/gems/gems/rails-7.0.1
/usr/share/gems/specifications/rails-7.0.1.gemspec

References

Summary

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