How To Install perl-Socket-GetAddrInfo on CentOS 7
Introduction
In this tutorial we learn how to install perl-Socket-GetAddrInfo
on CentOS 7.
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 CentOS 7. 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 CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install perl-Socket-GetAddrInfo
using yum
by running the following command:
sudo yum -y install perl-Socket-GetAddrInfo
Install perl-Socket-GetAddrInfo on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install perl-Socket-GetAddrInfo
using dnf
by running the following command:
sudo dnf -y install perl-Socket-GetAddrInfo
How To Uninstall perl-Socket-GetAddrInfo on CentOS 7
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 CentOS 7 using yum
and dnf
.