How To Install libhugetlbfs on Rocky Linux 8
Introduction
In this tutorial we learn how to install libhugetlbfs
on Rocky Linux 8.
What is libhugetlbfs
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 BSS or BSS, data, and text segments into large pages.
We can use yum
or dnf
to install libhugetlbfs
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libhugetlbfs.
Install libhugetlbfs on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libhugetlbfs
using dnf
by running the following command:
sudo dnf -y install libhugetlbfs
Install libhugetlbfs on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libhugetlbfs
using yum
by running the following command:
sudo yum -y install libhugetlbfs
How To Uninstall libhugetlbfs on Rocky Linux 8
To uninstall only the libhugetlbfs
package we can use the following command:
sudo dnf remove libhugetlbfs
libhugetlbfs Package Contents on Rocky Linux 8
/etc/security/limits.d/hugepages.conf
/usr/lib/.build-id
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/6a45939d04b9ef978d092a127938fd0b6b5af9
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/2232c192a54538e09bfa153f7431207a86eef1
/usr/lib64/libhugetlbfs.so
/usr/lib64/libhugetlbfs_privutils.so
/usr/share/doc/libhugetlbfs
/usr/share/doc/libhugetlbfs/HOWTO
/usr/share/doc/libhugetlbfs/LGPL-2.1
/usr/share/doc/libhugetlbfs/NEWS
/usr/share/doc/libhugetlbfs/README
/usr/share/libhugetlbfs
/usr/share/libhugetlbfs/ld
/usr/share/libhugetlbfs/ld.hugetlbfs
/usr/share/libhugetlbfs/ldscripts
/usr/share/libhugetlbfs/ldscripts/elf32ppclinux.xB
/usr/share/libhugetlbfs/ldscripts/elf32ppclinux.xBDT
/usr/share/libhugetlbfs/ldscripts/elf64ppc.xB
/usr/share/libhugetlbfs/ldscripts/elf64ppc.xBDT
/usr/share/libhugetlbfs/ldscripts/elf_i386.xB
/usr/share/libhugetlbfs/ldscripts/elf_i386.xBDT
/usr/share/libhugetlbfs/ldscripts/elf_x86_64.xB
/usr/share/libhugetlbfs/ldscripts/elf_x86_64.xBDT
/usr/share/man/man7/libhugetlbfs.7.gz
References
Summary
In this tutorial we learn how to install libhugetlbfs
on Rocky Linux 8 using yum and dnf.