How To Install perl-Test-RequiresInternet on CentOS 7
Introduction
In this tutorial we learn how to install perl-Test-RequiresInternet
on CentOS 7.
What is perl-Test-RequiresInternet
This module is intended to easily test network connectivity before functional tests begin to non-local Internet resources. It does not require any modules beyond those supplied in core Perl. If you do not specify a host/port pair, then the module defaults to using www.google.com on port 80. You may optionally specify the port by its name, as in http or ldap. If you do this, the test module will attempt to look up the port number using getservbyname. If you do specify a host and port, they must be specified in pairs. It is a fatal error to omit one or the other. If the environment variable NO_NETWORK_TESTING is set, then the tests will be skipped without attempting any socket connections. If the sockets cannot connect to the specified hosts and ports, the exception is caught, reported and the tests skipped.
We can use yum
or dnf
to install perl-Test-RequiresInternet
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Test-RequiresInternet.
Install perl-Test-RequiresInternet on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Test-RequiresInternet
using yum
by running the following command:
Install perl-Test-RequiresInternet 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.
After updating yum database, We can install perl-Test-RequiresInternet
using dnf
by running the following command:
How To Uninstall perl-Test-RequiresInternet on CentOS 7
To uninstall only the perl-Test-RequiresInternet
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Test-RequiresInternet
on CentOS 7 using yum
and dnf
.