How To Install python38-ply on AlmaLinux 8

In this tutorial we learn how to install python38-ply in AlmaLinux 8. python38-ply is Python Lex-Yacc

Introduction

In this tutorial we learn how to install python38-ply on AlmaLinux 8.

What is python38-ply

PLY is a straightforward lex/yacc implementation. Here is a list of its essential features * It is implemented entirely in Python. * It uses LR-parsing which is reasonably efficient and well suited for larger grammars. * PLY provides most of the standard lex/yacc features including support for empty productions, precedence rules, error recovery, and support for ambiguous grammars. * PLY is straightforward to use and provides very extensive error checking. * PLY doesn’t try to do anything more or less than provide the basic lex/yacc functionality. In other words, it’s not a large parsing framework or a component of some larger system. Python 3 version.

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

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

sudo dnf -y install python38-ply

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

sudo yum -y install python38-ply

How To Uninstall python38-ply on AlmaLinux 8

To uninstall only the python38-ply package we can use the following command:

sudo dnf remove python38-ply

References

Summary

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