How To Install pugixml on Fedora 34

pugixml is A light-weight C++ XML processing library A light-weight C++ XML processing library

Introduction

In this tutorial we learn how to install pugixml on Fedora 34.

What is pugixml

pugixml is a light-weight C++ XML processing library. It features - DOM-like interface with rich traversal/modification capabilities - Extremely fast non-validating XML parser which constructs the DOM tree from an XML file/buffer - XPath 1.0 implementation for complex data-driven tree queries - Full Unicode support with Unicode interface variants and automatic encoding conversions pugixml 1.11.4 2.fc34 x86_64 101 k pugixml-1.11.4-2.fc34.src.rpm fedora A light-weight C++ XML processing library http MIT pugixml is a light-weight C++ XML processing library. It features - DOM-like interface with rich traversal/modification capabilities - Extremely fast non-validating XML parser which constructs the DOM tree from an XML file/buffer - XPath 1.0 implementation for complex data-driven tree queries - Full Unicode support with Unicode interface variants and automatic encoding conversions

We can use yum or dnf to install pugixml on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install pugixml.

Install pugixml 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 pugixml using dnf by running the following command:

sudo dnf -y install pugixml

Install pugixml 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 pugixml using yum by running the following command:

sudo yum -y install pugixml

How To Uninstall pugixml on Fedora 34

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

sudo dnf remove pugixml

pugixml Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/05d4460064f372b3ea1b25006911edc3c527be
/usr/lib64/libpugixml.so.1
/usr/lib64/libpugixml.so.1.11
/usr/share/doc/pugixml
/usr/share/doc/pugixml/readme.txt
/usr/share/licenses/pugixml
/usr/share/licenses/pugixml/LICENSE.md
/usr/lib/.build-id
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/308df73e4b15598978c52acb84208b24f0a777
/usr/lib/libpugixml.so.1
/usr/lib/libpugixml.so.1.11
/usr/share/doc/pugixml
/usr/share/doc/pugixml/readme.txt
/usr/share/licenses/pugixml
/usr/share/licenses/pugixml/LICENSE.md

References

Summary

In this tutorial we learn how to install pugixml on Fedora 34 using yum and dnf.