How To Install php-crypt-chap on Debian 9
Introduction
In this tutorial we learn how to install php-crypt-chap on Debian 9.
What is php-crypt-chap
php-crypt-chap is:
This package provides Classes for generating CHAP packets. Currently these types of CHAP are supported:
- CHAP-MD5
- MS-CHAPv1
- MS-CHAPv2 For MS-CHAP the mhash and mcrypt extensions must be loaded.
There are three methods to install php-crypt-chap 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 php-crypt-chap Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install php-crypt-chap using apt-get by running the following command:
sudo apt-get -y install php-crypt-chap
Install php-crypt-chap Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install php-crypt-chap using apt by running the following command:
sudo apt -y install php-crypt-chap
Install php-crypt-chap 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 php-crypt-chap using aptitude by running the following command:
sudo aptitude -y install php-crypt-chap
How To Uninstall php-crypt-chap on Debian 9
To uninstall only the php-crypt-chap package we can use the following command:
sudo apt-get remove php-crypt-chap
Uninstall php-crypt-chap And Its Dependencies
To uninstall php-crypt-chap and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove php-crypt-chap
Remove php-crypt-chap Configurations and Data
To remove php-crypt-chap configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge php-crypt-chap
Remove php-crypt-chap configuration, data, and all of its dependencies
We can use the following command to remove php-crypt-chap configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge php-crypt-chap
Dependencies
php-crypt-chap have the following dependencies:
References
Summary
In this tutorial we learn how to install php-crypt-chap package on Debian 9 using different package management tools: apt, apt-get and aptitude.