How To Install libghc-store-dev on Kali Linux

In this tutorial we learn how to install libghc-store-dev on Kali Linux. libghc-store-dev is Fast binary serialization

Introduction

In this tutorial we learn how to install libghc-store-dev on Kali Linux.

What is libghc-store-dev

libghc-store-dev is:

The ‘store’ package provides efficient binary serialization. There are a couple features that particularly distinguish it from most prior Haskell serialization libraries:

  • Its primary goal is speed. By default, direct machine representations are used for things like numeric values (Int, Double, Word32, etc) and buffers (Text, ByteString, Vector, etc). This means that much of serialization uses the equivalent of memcpy.
  • Instead of implementing lazy serialization / deserialization involving multiple input / output buffers, peek and poke always work with a single buffer. This buffer is allocated by asking the value for its size before encoding. This simplifies the encoding logic, and allows for highly optimized tight loops.
  • store can optimize size computations by knowing when some types always use the same number of bytes. This allows for computing the byte size of a Vector Int32 by just doing length v * 4.

It also features:

  • Optimized serialization instances for many types from base, vector, bytestring, text, containers, time, template-haskell, and more.
  • TH and GHC Generics based generation of Store instances for datatypes
  • TH generation of testcases

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-store-dev on Kali Linux. 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-store-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-store-dev using apt-get by running the following command:

sudo apt-get -y install libghc-store-dev

Install libghc-store-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libghc-store-dev

Install libghc-store-dev Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libghc-store-dev using aptitude by running the following command:

sudo aptitude -y install libghc-store-dev

How To Uninstall libghc-store-dev on Kali Linux

To uninstall only the libghc-store-dev package we can use the following command:

sudo apt-get remove libghc-store-dev

Uninstall libghc-store-dev And Its Dependencies

To uninstall libghc-store-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libghc-store-dev

Remove libghc-store-dev Configurations and Data

To remove libghc-store-dev configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libghc-store-dev

Remove libghc-store-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libghc-store-dev

Dependencies

libghc-store-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libghc-store-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.