How To Install perl-Socket-GetAddrInfo on Rocky Linux 8

In this tutorial we learn how to install perl-Socket-GetAddrInfo on Rocky Linux 8. perl-Socket-GetAddrInfo is RFC 2553’s “getaddrinfo” and “getnameinfo” functions

Introduction

In this tutorial we learn how to install perl-Socket-GetAddrInfo on Rocky Linux 8.

What is perl-Socket-GetAddrInfo

The RFC 2553 functions getaddrinfo and getnameinfo provide an abstracted way to convert between a pair of host name/service name and socket addresses, or vice versa. getaddrinfo converts names into a set of arguments to pass to the socket() and connect() syscalls, and getnameinfo converts a socket address back into its host name/service name pair.

We can use yum or dnf to install perl-Socket-GetAddrInfo on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Socket-GetAddrInfo.

Install perl-Socket-GetAddrInfo on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Socket-GetAddrInfo using dnf by running the following command:

sudo dnf -y install perl-Socket-GetAddrInfo

Install perl-Socket-GetAddrInfo on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Socket-GetAddrInfo using yum by running the following command:

sudo yum -y install perl-Socket-GetAddrInfo

How To Uninstall perl-Socket-GetAddrInfo on Rocky Linux 8

To uninstall only the perl-Socket-GetAddrInfo package we can use the following command:

sudo dnf remove perl-Socket-GetAddrInfo

perl-Socket-GetAddrInfo Package Contents on Rocky Linux 8

/usr/bin/getaddrinfo
/usr/bin/getnameinfo
/usr/share/doc/perl-Socket-GetAddrInfo
/usr/share/doc/perl-Socket-GetAddrInfo/Changes
/usr/share/doc/perl-Socket-GetAddrInfo/LICENSE
/usr/share/doc/perl-Socket-GetAddrInfo/README
/usr/share/man/man1/getaddrinfo.1.gz
/usr/share/man/man1/getnameinfo.1.gz
/usr/share/man/man3/Socket::GetAddrInfo.3pm.gz
/usr/share/man/man3/Socket::GetAddrInfo::Emul.3pm.gz
/usr/share/man/man3/Socket::GetAddrInfo::Socket6api.3pm.gz
/usr/share/man/man3/Socket::GetAddrInfo::Strict.3pm.gz
/usr/share/perl5/vendor_perl/Socket
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo.pm
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo/Core.pm
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo/Emul.pm
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo/Socket6api.pm
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo/Strict.pm
/usr/share/perl5/vendor_perl/Socket/GetAddrInfo/XS.pm

References

Summary

In this tutorial we learn how to install perl-Socket-GetAddrInfo on Rocky Linux 8 using yum and dnf.