How To Install expat on AlmaLinux 8

expat is An XML parser library

Introduction

In this tutorial we learn how to install expat on AlmaLinux 8.

What is expat

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 or dnf to install expat on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install expat.

Install expat on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install expat using dnf by running the following command:

sudo dnf -y install expat

Install expat on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install expat using yum by running the following command:

sudo yum -y install expat

How To Uninstall expat on AlmaLinux 8

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

sudo dnf remove expat

expat Package Contents on AlmaLinux 8

/usr/bin/xmlwf
/usr/lib/.build-id
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/60420d17c438fb8767a6c83c96aec219def193
/usr/lib/.build-id/99
/usr/lib/.build-id/99/f5b9a4fdbafc352ae90d4d5105d79f9509f62d
/usr/lib/libexpat.so.1
/usr/lib/libexpat.so.1.6.7
/usr/share/doc/expat
/usr/share/doc/expat/AUTHORS
/usr/share/doc/expat/Changes
/usr/share/licenses/expat
/usr/share/licenses/expat/COPYING
/usr/share/man/man1/xmlwf.1.gz
/usr/bin/xmlwf
/usr/lib/.build-id
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/0c61e8bee57b27f173ffe7564e0df791dc5a39
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/908f1667d87baee2216507f62e1fff0d599a52
/usr/lib64/libexpat.so.1
/usr/lib64/libexpat.so.1.6.7
/usr/share/doc/expat
/usr/share/doc/expat/AUTHORS
/usr/share/doc/expat/Changes
/usr/share/licenses/expat
/usr/share/licenses/expat/COPYING
/usr/share/man/man1/xmlwf.1.gz

References

Summary

In this tutorial we learn how to install expat on AlmaLinux 8 using yum and dnf.