How To Install libhugetlbfs-dev on Debian 10

Learn how to install libhugetlbfs-dev on Debian 10 with this tutorial. libhugetlbfs-dev is Development files to build programs using libhugetlbfs

Introduction

In this tutorial we learn how to install libhugetlbfs-dev on Debian 10.

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 Debian 10. 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 update

After updating apt database, We can install libhugetlbfs-dev using apt-get by running the following command:

sudo apt-get -y install libhugetlbfs-dev

Install libhugetlbfs-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libhugetlbfs-dev using apt by running the following command:

sudo apt -y install libhugetlbfs-dev

Install libhugetlbfs-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libhugetlbfs-dev using aptitude by running the following command:

sudo aptitude -y install libhugetlbfs-dev

How To Uninstall libhugetlbfs-dev on Debian 10

To uninstall only the libhugetlbfs-dev package we can use the following command:

sudo apt-get remove libhugetlbfs-dev

Uninstall libhugetlbfs-dev And Its Dependencies

To uninstall libhugetlbfs-dev and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove libhugetlbfs-dev

Remove libhugetlbfs-dev Configurations and Data

To remove libhugetlbfs-dev configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge libhugetlbfs-dev

Remove 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-dev

Dependencies

libhugetlbfs-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libhugetlbfs-dev package on Debian 10 using different package management tools: apt, apt-get and aptitude.