How To Install rubygem-ipaddress on Fedora 36

In this tutorial we learn how to install rubygem-ipaddress in Fedora 36. rubygem-ipaddress is IPv4/IPv6 address manipulation library

Introduction

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

What is rubygem-ipaddress

IPAddress is a Ruby library designed to make manipulation of IPv4 and IPv6 addresses both powerful and simple. It maintains a layer of compatibility with Ruby’s own IPAddr, while addressing many of its issues.

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

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

sudo dnf -y install rubygem-ipaddress

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

sudo yum -y install rubygem-ipaddress

How To Uninstall rubygem-ipaddress on Fedora 36

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

sudo dnf remove rubygem-ipaddress

rubygem-ipaddress Package Contents on Fedora 36

/usr/share/gems/gems/ipaddress-0.8.3
/usr/share/gems/gems/ipaddress-0.8.3/LICENSE.txt
/usr/share/gems/gems/ipaddress-0.8.3/lib
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress.rb
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress/ipv4.rb
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress/ipv6.rb
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress/mongoid.rb
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress/prefix.rb
/usr/share/gems/gems/ipaddress-0.8.3/lib/ipaddress/version.rb
/usr/share/gems/specifications/ipaddress-0.8.3.gemspec

References

Summary

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