How To Install perl-Net-SSH on CentOS 7

In this tutorial we learn how to install perl-Net-SSH on CentOS 7. perl-Net-SSH is Perl extension for secure shell

Introduction

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

What is perl-Net-SSH

This module implements a Perl interface to ssh. It is a simple wrapper around the system ssh' command. For an all-perl implementation that does not require the system ssh’ command, see Net

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

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

sudo yum -y install perl-Net-SSH

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

sudo dnf -y install perl-Net-SSH

How To Uninstall perl-Net-SSH on CentOS 7

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

sudo dnf remove perl-Net-SSH

References

Summary

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