How To Install python3-sieve on AlmaLinux 8

In this tutorial we learn how to install python3-sieve in AlmaLinux 8. python3-sieve is XML Comparison Utils

Introduction

In this tutorial we learn how to install python3-sieve on AlmaLinux 8.

What is python3-sieve

Ripped from FormEncode and strainer just to support Pythons 2 and 3. Intended for use in your webapp test suites. Example usage »> from sieve.operators import eq_xml, in_xml »> a = “Value” »> b = """ … … Value … … """ »> eq_xml(a, b) True »> c = “Value</html” »> in_xml(a, c) # ’needle’ in a ‘haystack’ True

We can use yum or dnf to install python3-sieve on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sieve.

Install python3-sieve on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-sieve

Install python3-sieve on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-sieve

How To Uninstall python3-sieve on AlmaLinux 8

To uninstall only the python3-sieve package we can use the following command:

sudo dnf remove python3-sieve

References

Summary

In this tutorial we learn how to install python3-sieve on AlmaLinux 8 using yum and dnf.