How To Install python3-mako on AlmaLinux 8

In this tutorial we learn how to install python3-mako in AlmaLinux 8. python3-mako is Mako template library for Python 3

Introduction

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

What is python3-mako

Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Mako’s syntax and API borrows from the best ideas of many others, including Django templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded Python (i.e. Python Server Page) language, which refines the familiar ideas of componentized layout and inheritance to produce one of the most straightforward and flexible models available, while also maintaining close ties to Python calling and scoping semantics. This package contains the mako module built for use with python3.

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

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

sudo dnf -y install python3-mako

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

sudo yum -y install python3-mako

How To Uninstall python3-mako on AlmaLinux 8

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

sudo dnf remove python3-mako

References

Summary

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