How To Install python3-CommonMark on AlmaLinux 8

In this tutorial we learn how to install python3-CommonMark in AlmaLinux 8. python3-CommonMark is Documentation for python-CommonMark

Introduction

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

What is python3-CommonMark

Pure Python port of jgm’s stmd.js, a Markdown parser and renderer for the CommonMark specification, using only native modules. Once both this project and the CommonMark specification are stable we will release the first 1.0 version and attempt to keep up to date with changes in stmd.js. We are currently at the same development stage (actually a bit ahead because we have implemented HTML entity conversion and href URL escaping) as stmd.js. Since Python versions pre-3.4 use outdated (i.e. not HTML5 spec) entity conversion, I’ve converted the 3.4 implementation into a single file, entitytrans.py which so far seems to work (all tests pass on 2.7, 3.3, and 3.4).

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

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

sudo dnf -y install python3-CommonMark

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

sudo yum -y install python3-CommonMark

How To Uninstall python3-CommonMark on AlmaLinux 8

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

sudo dnf remove python3-CommonMark

References

Summary

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