How To Install libnet-openssh-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libnet-openssh-perl
on Ubuntu 18.04.
What is libnet-openssh-perl
libnet-openssh-perl is:
Net::OpenSSH is a secure shell client package implemented on top of the OpenSSH binary client (ssh), leveraging the multiplexing feature found in current versions of OpenSSH. That is, when a new Net::OpenSSH object is created, ssh is run in master mode establishing a permanent connection. Then, every time a new operation is requested, a new ssh process is started in slave mode, reusing the master SSH connection to send the request to the remote side. This makes Net::OpenSSH very fast, as most of the latency of ssh is intrinsic to the protocol.
If you like the API of other Perl SSH distributions like Net::SSH, Net::SSH2 or Net::SSH::Perl, and would like to use them with Net::OpenSSH, have a look at the libnet-openssh-compat-perl package.
There are three methods to install libnet-openssh-perl
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libnet-openssh-perl Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libnet-openssh-perl
using apt-get
by running the following command:
sudo apt-get -y install libnet-openssh-perl
Install libnet-openssh-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnet-openssh-perl
using apt
by running the following command:
sudo apt -y install libnet-openssh-perl
Install libnet-openssh-perl Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libnet-openssh-perl
using aptitude
by running the following command:
sudo aptitude -y install libnet-openssh-perl
How To Uninstall libnet-openssh-perl on Ubuntu 18.04
To uninstall only the libnet-openssh-perl
package we can use the following command:
sudo apt-get remove libnet-openssh-perl
Uninstall libnet-openssh-perl And Its Dependencies
To uninstall libnet-openssh-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libnet-openssh-perl
Remove libnet-openssh-perl Configurations and Data
To remove libnet-openssh-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libnet-openssh-perl
Remove libnet-openssh-perl configuration, data, and all of its dependencies
We can use the following command to remove libnet-openssh-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnet-openssh-perl
References
Summary
In this tutorial we learn how to install libnet-openssh-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.