How To Install libauthen-htpasswd-perl on Debian 9
Introduction
In this tutorial we learn how to install libauthen-htpasswd-perl
on Debian 9.
What is libauthen-htpasswd-perl
libauthen-htpasswd-perl is:
Authen::Htpasswd provides a convenient, object-oriented interface to Apache-style .htpasswd files.
It supports passwords encrypted via MD5, SHA-1, and crypt, as well as plain (cleartext) passwords.
Additional fields after username and password, if present, are accessible via the extra_info array.
There are three methods to install libauthen-htpasswd-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 libauthen-htpasswd-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 libauthen-htpasswd-perl
using apt-get
by running the following command:
sudo apt-get -y install libauthen-htpasswd-perl
Install libauthen-htpasswd-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libauthen-htpasswd-perl
using apt
by running the following command:
sudo apt -y install libauthen-htpasswd-perl
Install libauthen-htpasswd-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 libauthen-htpasswd-perl
using aptitude
by running the following command:
sudo aptitude -y install libauthen-htpasswd-perl
How To Uninstall libauthen-htpasswd-perl on Debian 9
To uninstall only the libauthen-htpasswd-perl
package we can use the following command:
sudo apt-get remove libauthen-htpasswd-perl
Uninstall libauthen-htpasswd-perl And Its Dependencies
To uninstall libauthen-htpasswd-perl
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libauthen-htpasswd-perl
Remove libauthen-htpasswd-perl Configurations and Data
To remove libauthen-htpasswd-perl
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libauthen-htpasswd-perl
Remove libauthen-htpasswd-perl configuration, data, and all of its dependencies
We can use the following command to remove libauthen-htpasswd-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libauthen-htpasswd-perl
Dependencies
libauthen-htpasswd-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libauthen-htpasswd-perl
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.