How To Install expat on CentOS 8
Introduction
In this tutorial we learn how to install expat
on CentOS 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. expat 2.2.5 4.el8 i686 110 k expat-2.2.5-4.el8.src.rpm baseos An XML parser library https MIT 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install expat.
Install expat on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install expat
using dnf
by running the following command:
sudo dnf -y install expat
Install expat on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
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 CentOS 8
To uninstall only the expat
package we can use the following command:
sudo dnf remove expat
expat Package Contents on CentOS 8
/usr/bin/xmlwf
/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/aedfb8010c2b1121d0309d419242b67b807f51
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/2b3cc183a8c5a22660d650ce0fcebf827f0da0
/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
/usr/bin/xmlwf
/usr/lib/.build-id
/usr/lib/.build-id/65
/usr/lib/.build-id/65/eb3d5c4a7635285613fe6969d2b805aee91115
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/ef57f99cf63dbd1198428fac0497bc4666581b
/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
References
- [expat website](https://libexpat.github.io/ https://libexpat.github.io/)
Summary
In this tutorial we learn how to install expat
on CentOS 8 using yum and dnf.