How To Install gperf.x86_64 on Amazon Linux 2

In this tutorial we learn how to install gperf.x86_64 in Amazon Linux 2. gperf.x86_64 is A perfect hash function generator

Introduction

In this tutorial we learn how to install gperf.x86_64 on Amazon Linux 2.

What is gperf.x86_64

Gperf is a perfect hash function generator written in C++. Simply stated, a perfect hash function is a hash function and a data structure that allows recognition of a key word in a set of words using exactly one probe into the data structure.

We can use yum to install gperf.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install gperf.x86_64.

Install gperf.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 gperf.x86_64 using yum by running the following command:

sudo yum -y install gperf.x86_64

How To Uninstall gperf.x86_64 on Amazon Linux 2

To uninstall only the gperf.x86_64 package we can use the following command:

sudo yum remove gperf.x86_64

gperf.x86_64 Package Contents on Amazon Linux 2

/usr/bin/gperf
/usr/share/doc/gperf-3.0.4
/usr/share/doc/gperf-3.0.4/COPYING
/usr/share/doc/gperf-3.0.4/NEWS
/usr/share/doc/gperf-3.0.4/README
/usr/share/doc/gperf-3.0.4/gperf.html
/usr/share/doc/gperf-3.0.4/gperf.pdf
/usr/share/doc/gperf-3.0.4/gperf_1.html
/usr/share/doc/gperf-3.0.4/gperf_10.html
/usr/share/doc/gperf-3.0.4/gperf_2.html
/usr/share/doc/gperf-3.0.4/gperf_3.html
/usr/share/doc/gperf-3.0.4/gperf_4.html
/usr/share/doc/gperf-3.0.4/gperf_5.html
/usr/share/doc/gperf-3.0.4/gperf_6.html
/usr/share/doc/gperf-3.0.4/gperf_7.html
/usr/share/doc/gperf-3.0.4/gperf_8.html
/usr/share/doc/gperf-3.0.4/gperf_9.html
/usr/share/doc/gperf-3.0.4/gperf_toc.html
/usr/share/info/gperf.info.gz
/usr/share/man/man1/gperf.1.gz

References

Summary

In this tutorial we learn how to install gperf.x86_64 on Amazon Linux 2 using yum.