How To Install perl-Net-SSH2 on Fedora 36

In this tutorial we learn how to install perl-Net-SSH2 in Fedora 36. perl-Net-SSH2 is Support for the SSH 2 protocol via libSSH2

Introduction

In this tutorial we learn how to install perl-Net-SSH2 on Fedora 36.

What is perl-Net-SSH2

Net library. It supports the SSH2 protocol (there is no support for SSH1) with all of the key exchanges, ciphers, and compression of libssh2.

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

Install perl-Net-SSH2 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install perl-Net-SSH2 using dnf by running the following command:

sudo dnf -y install perl-Net-SSH2

Install perl-Net-SSH2 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install perl-Net-SSH2 using yum by running the following command:

sudo yum -y install perl-Net-SSH2

How To Uninstall perl-Net-SSH2 on Fedora 36

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

sudo dnf remove perl-Net-SSH2

perl-Net-SSH2 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/e202cbd8abd1a616299f50b20c5f9332ed023b
/usr/lib64/perl5/vendor_perl/Net
/usr/lib64/perl5/vendor_perl/Net/SSH2
/usr/lib64/perl5/vendor_perl/Net/SSH2.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/Channel.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/Constants.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/Dir.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/File.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/KnownHosts.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/Listener.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/PublicKey.pm
/usr/lib64/perl5/vendor_perl/Net/SSH2/SFTP.pm
/usr/lib64/perl5/vendor_perl/auto/Net
/usr/lib64/perl5/vendor_perl/auto/Net/SSH2
/usr/lib64/perl5/vendor_perl/auto/Net/SSH2/SSH2.so
/usr/share/doc/perl-Net-SSH2
/usr/share/doc/perl-Net-SSH2/Changes
/usr/share/doc/perl-Net-SSH2/README.pod
/usr/share/doc/perl-Net-SSH2/example
/usr/share/doc/perl-Net-SSH2/example/benchmark.pl
/usr/share/doc/perl-Net-SSH2/example/read.pl
/usr/share/doc/perl-Net-SSH2/example/rt58911.pl
/usr/share/doc/perl-Net-SSH2/example/rt80011.pl
/usr/share/doc/perl-Net-SSH2/example/scat.pl
/usr/share/man/man3/Net::SSH2.3pm.gz
/usr/share/man/man3/Net::SSH2::Channel.3pm.gz
/usr/share/man/man3/Net::SSH2::Dir.3pm.gz
/usr/share/man/man3/Net::SSH2::File.3pm.gz
/usr/share/man/man3/Net::SSH2::KnownHosts.3pm.gz
/usr/share/man/man3/Net::SSH2::Listener.3pm.gz
/usr/share/man/man3/Net::SSH2::PublicKey.3pm.gz
/usr/share/man/man3/Net::SSH2::SFTP.3pm.gz

References

Summary

In this tutorial we learn how to install perl-Net-SSH2 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).