How To Install libpugixml1v5 on Debian 11

In this tutorial we learn how to install libpugixml1v5 on Debian 11. libpugixml1v5 is Light-weight C++ XML processing library

Introduction

In this tutorial we learn how to install libpugixml1v5 on Debian 11.

What is libpugixml1v5

libpugixml1v5 is:

pugixml is a lightweight C++ XML processing library with XPath support. It features:

  • DOM like interface with rich traversal/modification capabilities
  • Extermely 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.

This library is extremely portable and easy to integrate and use.

Since pugixml has a DOM parser, it can’t process XML documents that do not fit in memory; also the parser is a non-validating one, so if you need DTD or XML Schema validation, the library is not for you.

There are three methods to install libpugixml1v5 on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libpugixml1v5 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libpugixml1v5 using apt-get by running the following command:

sudo apt-get -y install libpugixml1v5

Install libpugixml1v5 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpugixml1v5 using apt by running the following command:

sudo apt -y install libpugixml1v5

Install libpugixml1v5 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libpugixml1v5 using aptitude by running the following command:

sudo aptitude -y install libpugixml1v5

How To Uninstall libpugixml1v5 on Debian 11

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

sudo apt-get remove libpugixml1v5

Uninstall libpugixml1v5 And Its Dependencies

To uninstall libpugixml1v5 and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libpugixml1v5

Remove libpugixml1v5 Configurations and Data

To remove libpugixml1v5 configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libpugixml1v5

Remove libpugixml1v5 configuration, data, and all of its dependencies

We can use the following command to remove libpugixml1v5 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libpugixml1v5

Dependencies

libpugixml1v5 have the following dependencies:

References

Summary

In this tutorial we learn how to install libpugixml1v5 package on Debian 11 using different package management tools: apt, apt-get and aptitude.