How To Install libmhash2 on Debian 9

In this tutorial we learn how to install libmhash2 on Debian 9. libmhash2 is Library for cryptographic hashing and message authentication

Introduction

In this tutorial we learn how to install libmhash2 on Debian 9.

What is libmhash2

libmhash2 is:

Mhash is a library that provides a uniform interface to a large number of hash algorithms. These algorithms can be used to compute checksums, message digests, and other signatures. The HMAC support implements the basics for message authentication, following RFC 2104. Mhash also provides several key-generation algorithms, including those of OpenPGP (RFC 2440).

This package contains the shared library.

There are three methods to install libmhash2 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 libmhash2 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libmhash2 using apt-get by running the following command:

sudo apt-get -y install libmhash2

Install libmhash2 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libmhash2 using apt by running the following command:

sudo apt -y install libmhash2

Install libmhash2 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 libmhash2 using aptitude by running the following command:

sudo aptitude -y install libmhash2

How To Uninstall libmhash2 on Debian 9

To uninstall only the libmhash2 package we can use the following command:

sudo apt-get remove libmhash2

Uninstall libmhash2 And Its Dependencies

To uninstall libmhash2 and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libmhash2

Remove libmhash2 Configurations and Data

To remove libmhash2 configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libmhash2

Remove libmhash2 configuration, data, and all of its dependencies

We can use the following command to remove libmhash2 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libmhash2

Dependencies

libmhash2 have the following dependencies:

References

Summary

In this tutorial we learn how to install libmhash2 package on Debian 9 using different package management tools: apt, apt-get and aptitude.