How To Install rubygem-public_suffix on Fedora 36

In this tutorial we learn how to install rubygem-public_suffix in Fedora 36. rubygem-public_suffix is Domain name parser based on the Public Suffix List

Introduction

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

What is rubygem-public_suffix

PublicSuffix can parse and decompose a domain name into top level domain, domain and subdomains.

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

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

sudo dnf -y install rubygem-public_suffix

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

sudo yum -y install rubygem-public_suffix

How To Uninstall rubygem-public_suffix on Fedora 36

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

sudo dnf remove rubygem-public_suffix

rubygem-public_suffix Package Contents on Fedora 36

/usr/share/gems/gems/public_suffix-4.0.6
/usr/share/gems/gems/public_suffix-4.0.6/LICENSE.txt
/usr/share/gems/gems/public_suffix-4.0.6/data
/usr/share/gems/gems/public_suffix-4.0.6/data/list.txt
/usr/share/gems/gems/public_suffix-4.0.6/lib
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix.rb
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix/domain.rb
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix/errors.rb
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix/list.rb
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix/rule.rb
/usr/share/gems/gems/public_suffix-4.0.6/lib/public_suffix/version.rb
/usr/share/gems/specifications/public_suffix-4.0.6.gemspec

References

Summary

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