How To Install libcom_err-devel.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libcom_err-devel.x86_64 in Amazon Linux 2. libcom_err-devel.x86_64 is Common error description library

Introduction

In this tutorial we learn how to install libcom_err-devel.x86_64 on Amazon Linux 2.

What is libcom_err-devel.x86_64

This is the common error description development library and headers, part of e2fsprogs. It contains the compile_et commmand, used to convert a table listing error-code names and associated messages messages into a C source file suitable for use with the library. libcom_err is an attempt to present a common error-handling mechanism.

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

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

sudo yum -y install libcom_err-devel.x86_64

How To Uninstall libcom_err-devel.x86_64 on Amazon Linux 2

To uninstall only the libcom_err-devel.x86_64 package we can use the following command:

sudo yum remove libcom_err-devel.x86_64

libcom_err-devel.x86_64 Package Contents on Amazon Linux 2

/usr/bin/compile_et
/usr/include/com_err.h
/usr/include/et
/usr/include/et/com_err.h
/usr/lib64/libcom_err.so
/usr/lib64/pkgconfig/com_err.pc
/usr/share/et
/usr/share/et/et_c.awk
/usr/share/et/et_h.awk
/usr/share/man/man1/compile_et.1.gz
/usr/share/man/man3/com_err.3.gz

References

Summary

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