How To Install mingw64-expat on Fedora 36

In this tutorial we learn how to install mingw64-expat in Fedora 36. mingw64-expat is MinGW Windows port of expat XML parser library

Introduction

In this tutorial we learn how to install mingw64-expat on Fedora 36.

What is mingw64-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 mingw64-expat on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install mingw64-expat.

Install mingw64-expat on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install mingw64-expat

Install mingw64-expat on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install mingw64-expat

How To Uninstall mingw64-expat on Fedora 36

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

sudo dnf remove mingw64-expat

mingw64-expat Package Contents on Fedora 36

/usr/share/licenses/mingw64-expat
/usr/share/licenses/mingw64-expat/COPYING
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/libexpat-1.dll
/usr/x86_64-w64-mingw32/sys-root/mingw/bin/xmlwf.exe
/usr/x86_64-w64-mingw32/sys-root/mingw/include/expat.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/expat_config.h
/usr/x86_64-w64-mingw32/sys-root/mingw/include/expat_external.h
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/expat-2.4.6
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/expat-2.4.6/expat-config-version.cmake
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/expat-2.4.6/expat-config.cmake
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/expat-2.4.6/expat-noconfig.cmake
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/cmake/expat-2.4.6/expat.cmake
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/libexpat.dll.a
/usr/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig/expat.pc

References

Summary

In this tutorial we learn how to install mingw64-expat on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).