How To Install libcpu-features-dev on Kali Linux
Introduction
In this tutorial we learn how to install libcpu-features-dev on Kali Linux.
What is libcpu-features-dev
libcpu-features-dev is:
Cross-platform C library to retrieve CPU features(such as available instructions) at runtime.
Design rationale:
- Simple to use.
- Extensible. Easy to add missing features or architectures.
- Compatible with old compilers and available on many architectures so it can be used widely. It’s implemented it in C99.
- Sandbox-compatible. The library uses a variety of strategies to cope with sandboxed environments or when cpuid is unavailable.
- Thread safe, no memory allocation, and raises no exceptions. cpu_features is suitable for implementing fundamental libc functions like malloc, memcpy, and memcmp.
- Unit tested.
There are three methods to install libcpu-features-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 libcpu-features-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libcpu-features-dev using apt-get by running the following command:
sudo apt-get -y install libcpu-features-devInstall libcpu-features-dev Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libcpu-features-dev using apt by running the following command:
sudo apt -y install libcpu-features-devInstall libcpu-features-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 libcpu-features-dev using aptitude by running the following command:
sudo aptitude -y install libcpu-features-devHow To Uninstall libcpu-features-dev on Kali Linux
To uninstall only the libcpu-features-dev package we can use the following command:
sudo apt-get remove libcpu-features-devUninstall libcpu-features-dev And Its Dependencies
To uninstall libcpu-features-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libcpu-features-devRemove libcpu-features-dev Configurations and Data
To remove libcpu-features-dev configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libcpu-features-devRemove libcpu-features-dev configuration, data, and all of its dependencies
We can use the following command to remove libcpu-features-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcpu-features-devDependencies
libcpu-features-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libcpu-features-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.