How To Install python-ply on CentOS 7
Introduction
In this tutorial we learn how to install python-ply
on CentOS 7.
What is python-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.
We can use yum
or dnf
to install python-ply
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-ply.
Install python-ply on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-ply
using yum
by running the following command:
Install python-ply on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python-ply
using dnf
by running the following command:
How To Uninstall python-ply on CentOS 7
To uninstall only the python-ply
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-ply
on CentOS 7 using yum
and dnf
.