How To Install libnet-ntp-perl on Debian 11
Introduction
In this tutorial we learn how to install libnet-ntp-perl
on Debian 11.
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 11. 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.
sudo apt-get update
After updating apt database, We can install libnet-ntp-perl
using apt-get
by running the following command:
sudo apt-get -y install libnet-ntp-perl
Install libnet-ntp-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnet-ntp-perl
using apt
by running the following command:
sudo apt -y install libnet-ntp-perl
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.
sudo aptitude update
After updating apt database, We can install libnet-ntp-perl
using aptitude
by running the following command:
sudo aptitude -y install libnet-ntp-perl
How To Uninstall libnet-ntp-perl on Debian 11
To uninstall only the libnet-ntp-perl
package we can use the following command:
sudo apt-get remove libnet-ntp-perl
Uninstall libnet-ntp-perl And Its Dependencies
To uninstall libnet-ntp-perl
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove libnet-ntp-perl
Remove libnet-ntp-perl Configurations and Data
To remove libnet-ntp-perl
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge libnet-ntp-perl
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:
sudo apt-get -y autoremove --purge libnet-ntp-perl
Dependencies
libnet-ntp-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libnet-ntp-perl
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.