How To Install expat.x86_64 on Amazon Linux 2

In this tutorial we learn how to install expat.x86_64 in Amazon Linux 2. expat.x86_64 is An XML parser library

Introduction

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

What is expat.x86_64

This is expat, the C library for parsing XML, written by James Clark. Expat is a stream oriented XML parser. This means that you register handlers with the parser prior to starting the parse. These handlers are called when the parser discovers the associated structures in the document being parsed. A start tag is an example of the kind of structures for which you may register handlers.

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

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

sudo yum -y install expat.x86_64

How To Uninstall expat.x86_64 on Amazon Linux 2

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

sudo yum remove expat.x86_64

expat.x86_64 Package Contents on Amazon Linux 2

/usr/bin/xmlwf
/usr/lib64/libexpat.so.1
/usr/lib64/libexpat.so.1.6.0
/usr/share/doc/expat-2.1.0
/usr/share/doc/expat-2.1.0/COPYING
/usr/share/doc/expat-2.1.0/README
/usr/share/man/man1/xmlwf.1.gz

References

Summary

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