How To Install libreaderwriterqueue-dev on Kali Linux
Introduction
In this tutorial we learn how to install libreaderwriterqueue-dev on Kali Linux.
What is libreaderwriterqueue-dev
libreaderwriterqueue-dev is:
This package provides a lock-free queue for C++. It only supports a two-thread use case (one consuming, and one producing). The threads can’t switch roles, though you could use this queue completely from a single thread if you wish (but that would sort of defeat the purpose!).
Features:
- Blazing fast
- Compatible with C++11 (supports moving objects instead of making copies)
- Fully generic (templated container of any type) – just like std::queue, you never need to allocate memory for elements yourself (which saves you the hassle of writing a lock-free memory manager to hold the elements you’re queueing)
- Allocates memory up front, in contiguous blocks
- Provides a try_enqueue method which is guaranteed never to allocate memory (the queue starts with an initial capacity)
- Also provides an enqueue method which can dynamically grow the size of the queue as needed
- Also provides try_emplace/emplace convenience methods
- Has a blocking version with wait_dequeue
- Completely “wait-free” (no compare-and-swap loop). Enqueue and dequeue are always O(1) (not counting memory allocation)
- On x86, the memory barriers compile down to no-ops, meaning enqueue and dequeue are just a simple series of loads and stores (and branches)
There are three methods to install libreaderwriterqueue-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 libreaderwriterqueue-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libreaderwriterqueue-dev using apt-get by running the following command:
sudo apt-get -y install libreaderwriterqueue-devInstall libreaderwriterqueue-dev Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libreaderwriterqueue-dev using apt by running the following command:
sudo apt -y install libreaderwriterqueue-devInstall libreaderwriterqueue-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 updateAfter updating apt database, We can install libreaderwriterqueue-dev using aptitude by running the following command:
sudo aptitude -y install libreaderwriterqueue-devHow To Uninstall libreaderwriterqueue-dev on Kali Linux
To uninstall only the libreaderwriterqueue-dev package we can use the following command:
sudo apt-get remove libreaderwriterqueue-devUninstall libreaderwriterqueue-dev And Its Dependencies
To uninstall libreaderwriterqueue-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libreaderwriterqueue-devRemove libreaderwriterqueue-dev Configurations and Data
To remove libreaderwriterqueue-dev configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libreaderwriterqueue-devRemove libreaderwriterqueue-dev configuration, data, and all of its dependencies
We can use the following command to remove libreaderwriterqueue-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libreaderwriterqueue-devDependencies
libreaderwriterqueue-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libreaderwriterqueue-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.