How To Install perl-Net-Whois on Fedora 36

In this tutorial we learn how to install perl-Net-Whois in Fedora 36. perl-Net-Whois is Get and parse “whois” domain data from InterNIC

Introduction

In this tutorial we learn how to install perl-Net-Whois on Fedora 36.

What is perl-Net-Whois

Net domain’s “whois” information from the InterNIC (whois.internic.net). If the server could not be contacted, is too busy, or otherwise does not process the query then the constructor does not return a reference and your object is undefined. If the constructor returns a reference, that reference can be used to access the various attributes of the domains’ whois entry assuming that there was a match. The member function ok returns 1 if a match 0 if no match.

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

Install perl-Net-Whois 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 perl-Net-Whois using dnf by running the following command:

sudo dnf -y install perl-Net-Whois

Install perl-Net-Whois 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 perl-Net-Whois using yum by running the following command:

sudo yum -y install perl-Net-Whois

How To Uninstall perl-Net-Whois on Fedora 36

To uninstall only the perl-Net-Whois package we can use the following command:

sudo dnf remove perl-Net-Whois

perl-Net-Whois Package Contents on Fedora 36

/usr/share/doc/perl-Net-Whois
/usr/share/doc/perl-Net-Whois/README
/usr/share/man/man3/Net::Whois.3pm.gz
/usr/share/perl5/vendor_perl/Net
/usr/share/perl5/vendor_perl/Net/Whois.pm

References

Summary

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