How To Install libhugetlbfs.x86_64 on Amazon Linux 2
Introduction
In this tutorial we learn how to install libhugetlbfs.x86_64 on Amazon Linux 2.
What is libhugetlbfs.x86_64
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 to install libhugetlbfs.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libhugetlbfs.x86_64.
Install libhugetlbfs.x86_64 on Amazon Linux 2 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install libhugetlbfs.x86_64 using yum by running the following command:
sudo yum -y install libhugetlbfs.x86_64
How To Uninstall libhugetlbfs.x86_64 on Amazon Linux 2
To uninstall only the libhugetlbfs.x86_64 package we can use the following command:
sudo yum remove libhugetlbfs.x86_64
libhugetlbfs.x86_64 Package Contents on Amazon Linux 2
/etc/security/limits.d/hugepages.conf
/usr/lib64/libhugetlbfs.so
/usr/share/doc/libhugetlbfs-2.20
/usr/share/doc/libhugetlbfs-2.20/HOWTO
/usr/share/doc/libhugetlbfs-2.20/LGPL-2.1
/usr/share/doc/libhugetlbfs-2.20/NEWS
/usr/share/doc/libhugetlbfs-2.20/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.x86_64 on Amazon Linux 2 using yum.