How To Install python3-mongoquery on AlmaLinux 8

In this tutorial we learn how to install python3-mongoquery in AlmaLinux 8. python3-mongoquery is Python implementation of mongodb queries

Introduction

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

What is python3-mongoquery

A utility library that provides a MongoDB-like query language for querying Python collections. It’s mainly intended to parse objects structured as fundamental types in a similar fashion to what is produced by JSON or YAML parsers. It follows the specification of queries for MongoDB version 3.2.

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

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

sudo dnf -y install python3-mongoquery

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

sudo yum -y install python3-mongoquery

How To Uninstall python3-mongoquery on AlmaLinux 8

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

sudo dnf remove python3-mongoquery

References

Summary

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