How To Install libbitmask1 on Kali Linux
Introduction
In this tutorial we learn how to install libbitmask1
on Kali Linux.
What is libbitmask1
libbitmask1 is:
This Bitmask library supports multi-word bitmask operations for applications programmed in ‘C’. It works in conjunction with recent Linux kernel support for processor and memory placement on multiprocessor SMP and NUMA systems. The cpuset library, being developed in parallel, depends on this bitmask library.
Bitmasks provide multi-word bit masks and operations thereon to do such things as set and clear bits, intersect and union masks, query bits, and display and parse masks.
The initial intended use for these bitmasks is to represent sets of CPUs and Memory Nodes, when configuring large SMP and NUMA systems. However there is little in the semantics of bitmasks that is specific to this particular use, and bitmasks should be usable for other purposes that had similar design requirements.
These bitmasks share the same underlying layout as the bitmasks used by the Linux kernel to represent sets of CPUs and Memory Nodes. Unlike the kernel bitmasks, these bitmasks use dynamically allocated memory and are manipulated via a pointer. This enables a program to work correctly on systems with various numbers of CPUs and Nodes, without recompilation.
There is a related cpuset library which uses the bitmask type provided here to represent sets of CPUs and Memory Nodes. The internal representation (as an array of unsigned longs, in little endian order) is directly compatible with the sched_setaffinity(2) and sched_getaffinity(2) system calls (added in Linux 2.6).
There are three methods to install libbitmask1
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 libbitmask1 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libbitmask1
using apt-get
by running the following command:
sudo apt-get -y install libbitmask1
Install libbitmask1 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libbitmask1
using apt
by running the following command:
sudo apt -y install libbitmask1
Install libbitmask1 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 libbitmask1
using aptitude
by running the following command:
sudo aptitude -y install libbitmask1
How To Uninstall libbitmask1 on Kali Linux
To uninstall only the libbitmask1
package we can use the following command:
sudo apt-get remove libbitmask1
Uninstall libbitmask1 And Its Dependencies
To uninstall libbitmask1
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libbitmask1
Remove libbitmask1 Configurations and Data
To remove libbitmask1
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libbitmask1
Remove libbitmask1 configuration, data, and all of its dependencies
We can use the following command to remove libbitmask1
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libbitmask1
Dependencies
libbitmask1 have the following dependencies:
References
Summary
In this tutorial we learn how to install libbitmask1
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.