How To Install libghc-crypto-random-api-dev on Debian 12

Learn how to install libghc-crypto-random-api-dev on Debian 12 with this tutorial. libghc-crypto-random-api-dev is simple random generators API for cryptography related code

Introduction

In this tutorial we learn how to install libghc-crypto-random-api-dev on Debian 12.

What is libghc-crypto-random-api-dev

libghc-crypto-random-api-dev is:

This provides a class of Cryptographic Secure Random generator.

The main difference with the generic Haskell RNG is that it return bytes instead of an integer.

It is quite similar to the CryptoRandomGen class in crypto-api except that error are not returned to the user. Instead the user is suppose to handle reseeding by using the NeedReseed and SupplyEntropy methods. For other type of errors, the user is expected to generate bytes with the parameters bounds explicity defined here.

The CPRG need to be able to generate up to 2^20 bytes in one call.

This package provides a library for the Haskell programming language. See http://www.haskell.org/ for more information on Haskell.

There are three methods to install libghc-crypto-random-api-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libghc-crypto-random-api-dev Using apt-get

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

sudo apt-get update

After updating apt database, We can install libghc-crypto-random-api-dev using apt-get by running the following command:

sudo apt-get -y install libghc-crypto-random-api-dev

Install libghc-crypto-random-api-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libghc-crypto-random-api-dev using apt by running the following command:

sudo apt -y install libghc-crypto-random-api-dev

Install libghc-crypto-random-api-dev 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 libghc-crypto-random-api-dev using aptitude by running the following command:

sudo aptitude -y install libghc-crypto-random-api-dev

How To Uninstall libghc-crypto-random-api-dev on Debian 12

To uninstall only the libghc-crypto-random-api-dev package we can use the following command:

sudo apt-get remove libghc-crypto-random-api-dev

Uninstall libghc-crypto-random-api-dev And Its Dependencies

To uninstall libghc-crypto-random-api-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libghc-crypto-random-api-dev

Remove libghc-crypto-random-api-dev Configurations and Data

To remove libghc-crypto-random-api-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libghc-crypto-random-api-dev

Remove libghc-crypto-random-api-dev configuration, data, and all of its dependencies

We can use the following command to remove libghc-crypto-random-api-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libghc-crypto-random-api-dev

Dependencies

libghc-crypto-random-api-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libghc-crypto-random-api-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.