How To Install lua-expat on Rocky Linux 8

In this tutorial we learn how to install lua-expat on Rocky Linux 8. lua-expat is SAX XML parser based on the Expat library

Introduction

In this tutorial we learn how to install lua-expat on Rocky Linux 8.

What is lua-expat

LuaExpat is a SAX XML parser based on the Expat library.

We can use yum or dnf to install lua-expat on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lua-expat.

Install lua-expat on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install lua-expat

Install lua-expat on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install lua-expat

How To Uninstall lua-expat on Rocky Linux 8

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

sudo dnf remove lua-expat

lua-expat Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/448382937a35d7178a1f2a40a053a7d69fc577
/usr/lib64/lua/5.3/lxp.so
/usr/share/doc/lua-expat
/usr/share/doc/lua-expat/README
/usr/share/doc/lua-expat/examples.html
/usr/share/doc/lua-expat/index.html
/usr/share/doc/lua-expat/license.html
/usr/share/doc/lua-expat/lom.html
/usr/share/doc/lua-expat/luaexpat.png
/usr/share/doc/lua-expat/manual.html
/usr/share/lua/5.3/lxp
/usr/share/lua/5.3/lxp/lom.lua

References

Summary

In this tutorial we learn how to install lua-expat on Rocky Linux 8 using yum and dnf.