How To Install libnet-ntp-perl on Debian 9
Introduction
In this tutorial we learn how to install libnet-ntp-perl
on Debian 9.
What is libnet-ntp-perl
libnet-ntp-perl is:
Net::NTP is a small perl module to query an NTP (Network Time Protocol) time server for the current time. It exports a single method (get_ntp_response) and returns an associative array based upon RFC1305 and RFC2030. The response from the server is “humanized” to a point that further processing of the information received from the server can be manipulated. For example: timestamps are in epoch, so one could use the localtime function to produce an even more “human” representation of the timestamp.
There are three methods to install libnet-ntp-perl
on Debian 9. 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-ntp-perl Using apt-get
Update apt database with apt-get
using the following command.
After updating apt database, We can install libnet-ntp-perl
using apt-get
by running the following command:
Install libnet-ntp-perl Using apt
Update apt database with apt
using the following command.
After updating apt database, We can install libnet-ntp-perl
using apt
by running the following command:
Install libnet-ntp-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 Debian. Update apt database with aptitude
using the following command.
After updating apt database, We can install libnet-ntp-perl
using aptitude
by running the following command:
How To Uninstall libnet-ntp-perl on Debian 9
To uninstall only the libnet-ntp-perl
package we can use the following command:
Uninstall libnet-ntp-perl And Its Dependencies
To uninstall libnet-ntp-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
Remove libnet-ntp-perl Configurations and Data
To remove libnet-ntp-perl
configuration and data from Debian 9 we can use the following command:
Remove libnet-ntp-perl configuration, data, and all of its dependencies
We can use the following command to remove libnet-ntp-perl
configurations, data and all of its dependencies, we can use the following command:
Dependencies
libnet-ntp-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libnet-ntp-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.