How To Install perl-Apache-Htpasswd on CentOS 7
Introduction
In this tutorial we learn how to install perl-Apache-Htpasswd
on CentOS 7.
What is perl-Apache-Htpasswd
This module comes with a set of methods to use with htaccess password files. These files (and htaccess) are used to do Basic Authentication on a web server. The passwords file is a flat-file with login name and their associated encrypted password. You can use this for non-Apache files if you wish, but it was written specifically for .htaccess style files.
We can use yum
or dnf
to install perl-Apache-Htpasswd
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-Apache-Htpasswd.
Install perl-Apache-Htpasswd on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install perl-Apache-Htpasswd
using yum
by running the following command:
Install perl-Apache-Htpasswd on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install perl-Apache-Htpasswd
using dnf
by running the following command:
How To Uninstall perl-Apache-Htpasswd on CentOS 7
To uninstall only the perl-Apache-Htpasswd
package we can use the following command:
References
Summary
In this tutorial we learn how to install perl-Apache-Htpasswd
on CentOS 7 using yum
and dnf
.