How To Install rubygem-sd_notify on Fedora 36

In this tutorial we learn how to install rubygem-sd_notify in Fedora 36. rubygem-sd_notify is Pure Ruby implementation of systemd’s sd_notify(3)

Introduction

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

What is rubygem-sd_notify

sd_notify can be used to notify systemd about various service status changes of Ruby programs.

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

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

sudo dnf -y install rubygem-sd_notify

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

sudo yum -y install rubygem-sd_notify

How To Uninstall rubygem-sd_notify on Fedora 36

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

sudo dnf remove rubygem-sd_notify

rubygem-sd_notify Package Contents on Fedora 36

/usr/share/gems/gems/sd_notify-0.1.1
/usr/share/gems/gems/sd_notify-0.1.1/LICENSE
/usr/share/gems/gems/sd_notify-0.1.1/lib
/usr/share/gems/gems/sd_notify-0.1.1/lib/sd_notify.rb
/usr/share/gems/specifications/sd_notify-0.1.1.gemspec

References

Summary

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