How To Install perl-Test-RequiresInternet on Rocky Linux 8

In this tutorial we learn how to install perl-Test-RequiresInternet on Rocky Linux 8. perl-Test-RequiresInternet is Easily test network connectivity

Introduction

In this tutorial we learn how to install perl-Test-RequiresInternet on Rocky Linux 8.

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 Rocky Linux 8. 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 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-Test-RequiresInternet using dnf by running the following command:

sudo dnf -y install perl-Test-RequiresInternet

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

sudo yum -y install perl-Test-RequiresInternet

How To Uninstall perl-Test-RequiresInternet on Rocky Linux 8

To uninstall only the perl-Test-RequiresInternet package we can use the following command:

sudo dnf remove perl-Test-RequiresInternet

perl-Test-RequiresInternet Package Contents on Rocky Linux 8

/usr/share/doc/perl-Test-RequiresInternet
/usr/share/doc/perl-Test-RequiresInternet/Changes
/usr/share/doc/perl-Test-RequiresInternet/README
/usr/share/licenses/perl-Test-RequiresInternet
/usr/share/licenses/perl-Test-RequiresInternet/LICENSE
/usr/share/man/man3/Test::RequiresInternet.3pm.gz
/usr/share/perl5/vendor_perl/Test
/usr/share/perl5/vendor_perl/Test/RequiresInternet.pm

References

Summary

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