How To Install rubygem-netrc on Fedora 36

In this tutorial we learn how to install rubygem-netrc in Fedora 36. rubygem-netrc is Library to read and write netrc files

Introduction

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

What is rubygem-netrc

This library can read and update netrc files, preserving formatting including comments and whitespace.

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

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

sudo dnf -y install rubygem-netrc

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

sudo yum -y install rubygem-netrc

How To Uninstall rubygem-netrc on Fedora 36

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

sudo dnf remove rubygem-netrc

rubygem-netrc Package Contents on Fedora 36

/usr/share/gems/gems/netrc-0.11.0
/usr/share/gems/gems/netrc-0.11.0/LICENSE.md
/usr/share/gems/gems/netrc-0.11.0/lib
/usr/share/gems/gems/netrc-0.11.0/lib/netrc.rb
/usr/share/gems/specifications/netrc-0.11.0.gemspec

References

Summary

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