How To Install libghc-psqueues-dev on Kali Linux
Introduction
In this tutorial we learn how to install libghc-psqueues-dev
on Kali Linux.
What is libghc-psqueues-dev
libghc-psqueues-dev is:
This package provides Priority Search Queues in three different flavors.
OrdPSQ k p v, which uses the Ord k instance to provide fast insertion, deletion and lookup. This implementation is based on Ralf Hinze’s “A Simple Implementation Technique for Priority Search Queues”. Hence, it is similar to the PSQueue library, although it is considerably faster and provides a slightly different API.
IntPSQ p v is a far more efficient implementation. It fixes the key type to Int and uses a radix tree (like IntMap) with an additional min-heap property.
HashPSQ k p v is a fairly straightforward extension of IntPSQ: it simply uses the keys’ hashes as indices in the IntPSQ. If there are any hash collisions, it uses an OrdPSQ to resolve those. The performance of this implementation is comparable to that of IntPSQ, but it is more widely applicable since the keys are not restricted to Int, but rather to any Hashable datatype.
Each of the three implementations provides the same API, so they can be used interchangeably.
Typical applications of Priority Search Queues include:
Caches, and more specifically LRU Caches;
Schedulers;
Pathfinding algorithms, such as Dijkstra’s and A*.
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-psqueues-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-psqueues-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-psqueues-dev
using apt-get
by running the following command:
sudo apt-get -y install libghc-psqueues-dev
Install libghc-psqueues-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libghc-psqueues-dev
using apt
by running the following command:
sudo apt -y install libghc-psqueues-dev
Install libghc-psqueues-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-psqueues-dev
using aptitude
by running the following command:
sudo aptitude -y install libghc-psqueues-dev
How To Uninstall libghc-psqueues-dev on Kali Linux
To uninstall only the libghc-psqueues-dev
package we can use the following command:
sudo apt-get remove libghc-psqueues-dev
Uninstall libghc-psqueues-dev And Its Dependencies
To uninstall libghc-psqueues-dev
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libghc-psqueues-dev
Remove libghc-psqueues-dev Configurations and Data
To remove libghc-psqueues-dev
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libghc-psqueues-dev
Remove libghc-psqueues-dev configuration, data, and all of its dependencies
We can use the following command to remove libghc-psqueues-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libghc-psqueues-dev
Dependencies
libghc-psqueues-dev have the following dependencies:
- libghc-base-dev-4.13.0.0-2f220
- libghc-deepseq-dev-1.4.4.0-9f093
- libghc-ghc-prim-dev-0.5.3-49209
- libghc-hashable-dev-1.3.0.0-d5f3c
- libc6
- libgmp10
References
Summary
In this tutorial we learn how to install libghc-psqueues-dev
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.