How To Install libhugetlbfs-dev on Kali Linux
Introduction
In this tutorial we learn how to install libhugetlbfs-dev on Kali Linux.
What is libhugetlbfs-dev
libhugetlbfs-dev is:
libhugetlbfs is a library which provides easy access to huge pages of memory. It is a wrapper for the hugetlbfs file system. Applications can use huge pages to fulfill malloc() requests without being recompiled by using LD_PRELOAD. Alternatively, applications can be linked against libhugetlbfs without source modifications to load text or BSS or BSS, data, and text segments into large pages. The library also comes with several userspace tools to help with huge page usability, environment setup, and control.
This package ships the library development files.
There are three methods to install libhugetlbfs-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 libhugetlbfs-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libhugetlbfs-dev using apt-get by running the following command:
sudo apt-get -y install libhugetlbfs-devInstall libhugetlbfs-dev Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libhugetlbfs-dev using apt by running the following command:
sudo apt -y install libhugetlbfs-devInstall libhugetlbfs-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 libhugetlbfs-dev using aptitude by running the following command:
sudo aptitude -y install libhugetlbfs-devHow To Uninstall libhugetlbfs-dev on Kali Linux
To uninstall only the libhugetlbfs-dev package we can use the following command:
sudo apt-get remove libhugetlbfs-devUninstall libhugetlbfs-dev And Its Dependencies
To uninstall libhugetlbfs-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libhugetlbfs-devRemove libhugetlbfs-dev Configurations and Data
To remove libhugetlbfs-dev configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libhugetlbfs-devRemove libhugetlbfs-dev configuration, data, and all of its dependencies
We can use the following command to remove libhugetlbfs-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhugetlbfs-devDependencies
libhugetlbfs-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libhugetlbfs-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.