How To Install perl-SOCKS on CentOS 7

In this tutorial we learn how to install perl-SOCKS on CentOS 7. perl-SOCKS is SOCKS Perl module

Introduction

In this tutorial we learn how to install perl-SOCKS on CentOS 7.

What is perl-SOCKS

This is a SOCKS client module that can communicate with SOCKS v4 and v5 servers. It currently allows you to make outgoing and incoming TCP connections. UDP is not yet supported and is first on the TODO list. Included in this distribution is a sample program called “example” to show you how to use this module. Net “perldoc Net

We can use yum or dnf to install perl-SOCKS on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-SOCKS.

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

sudo yum -y install perl-SOCKS

Install perl-SOCKS 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-SOCKS using dnf by running the following command:

sudo dnf -y install perl-SOCKS

How To Uninstall perl-SOCKS on CentOS 7

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

sudo dnf remove perl-SOCKS

References

Summary

In this tutorial we learn how to install perl-SOCKS on CentOS 7 using yum and dnf.