How To Install glibc-utils.x86_64 on Amazon Linux 2

In this tutorial we learn how to install glibc-utils.x86_64 in Amazon Linux 2. glibc-utils.x86_64 is Development utilities from GNU C library

Introduction

In this tutorial we learn how to install glibc-utils.x86_64 on Amazon Linux 2.

What is glibc-utils.x86_64

The glibc-utils package contains memusage, a memory usage profiler, mtrace, a memory leak tracer and xtrace, a function call tracer which can be helpful during program debugging. If unsure if you need this, don’t install this package.

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

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

sudo yum -y install glibc-utils.x86_64

How To Uninstall glibc-utils.x86_64 on Amazon Linux 2

To uninstall only the glibc-utils.x86_64 package we can use the following command:

sudo yum remove glibc-utils.x86_64

glibc-utils.x86_64 Package Contents on Amazon Linux 2

/usr/bin/memusage
/usr/bin/memusagestat
/usr/bin/mtrace
/usr/bin/pcprofiledump
/usr/bin/xtrace

References

Summary

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