How To Install perl-Socket-GetAddrInfo on AlmaLinux 8
Introduction
In this tutorial we learn how to install perl-Socket-GetAddrInfo
on AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 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 AlmaLinux 8
To uninstall only the perl-Socket-GetAddrInfo
package we can use the following command:
sudo dnf remove perl-Socket-GetAddrInfo
References
Summary
In this tutorial we learn how to install perl-Socket-GetAddrInfo
on AlmaLinux 8 using yum and dnf.