How To Install python3-ply on Fedora 36

In this tutorial we learn how to install python3-ply in Fedora 36. python3-ply is Python Lex-Yacc

Introduction

In this tutorial we learn how to install python3-ply on Fedora 36.

What is python3-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 python3-ply on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-ply.

Install python3-ply on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-ply using dnf by running the following command:

sudo dnf -y install python3-ply

Install python3-ply on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-ply using yum by running the following command:

sudo yum -y install python3-ply

How To Uninstall python3-ply on Fedora 36

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

sudo dnf remove python3-ply

python3-ply Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/ply
/usr/lib/python3.10/site-packages/ply-3.11-py3.10.egg-info
/usr/lib/python3.10/site-packages/ply-3.11-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/ply-3.11-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/ply-3.11-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/ply-3.11-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/ply/__init__.py
/usr/lib/python3.10/site-packages/ply/__pycache__
/usr/lib/python3.10/site-packages/ply/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/cpp.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/cpp.cpython-310.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/ctokens.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/ctokens.cpython-310.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/lex.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/lex.cpython-310.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/yacc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/yacc.cpython-310.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/ygen.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ply/__pycache__/ygen.cpython-310.pyc
/usr/lib/python3.10/site-packages/ply/cpp.py
/usr/lib/python3.10/site-packages/ply/ctokens.py
/usr/lib/python3.10/site-packages/ply/lex.py
/usr/lib/python3.10/site-packages/ply/yacc.py
/usr/lib/python3.10/site-packages/ply/ygen.py
/usr/share/doc/python3-ply
/usr/share/doc/python3-ply/CHANGES
/usr/share/doc/python3-ply/README.md
/usr/share/licenses/python3-ply
/usr/share/licenses/python3-ply/LICENSE

References

Summary

In this tutorial we learn how to install python3-ply on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).