How To Install expat on Fedora 34
Introduction
In this tutorial we learn how to install expat
on Fedora 34.
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.4.1 1.fc34 i686 113 k expat-2.4.1-1.fc34.src.rpm updates 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install expat.
Install expat on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 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 Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 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 Fedora 34
To uninstall only the expat
package we can use the following command:
sudo dnf remove expat
expat Package Contents on Fedora 34
/usr/bin/xmlwf
/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/102d281827f4c95583be181d23610bc81fc140
/usr/lib/.build-id/80
/usr/lib/.build-id/80/875a810040d4142e14c7d11a92ce43e5865731
/usr/lib64/libexpat.so.1
/usr/lib64/libexpat.so.1.8.1
/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/38
/usr/lib/.build-id/38/3d66da312e548ca07d64b8f4c76ffc61402749
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/4879fe68bb318754b6bf6da6c85d132c64f3f9
/usr/lib/libexpat.so.1
/usr/lib/libexpat.so.1.8.1
/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/ad
/usr/lib/.build-id/ad/796daaa561ea6150e5625f9498f94af0e94e34
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/9385c948c56c66118da3c6c91af6bccde5a1f1
/usr/lib64/libexpat.so.1
/usr/lib64/libexpat.so.1.6.12
/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/e6
/usr/lib/.build-id/e6/4ef552aaf2f89fcc0e73ddddb54a45d30e352a
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/c46c046005706b4e8962cbeb13b8d2271ddaf9
/usr/lib/libexpat.so.1
/usr/lib/libexpat.so.1.6.12
/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 Fedora 34 using yum and dnf.