How To Install python39-ply on Rocky Linux 8
Introduction
In this tutorial we learn how to install python39-ply
on Rocky Linux 8.
What is python39-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 python39-ply
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python39-ply.
Install python39-ply on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python39-ply
using dnf
by running the following command:
sudo dnf -y install python39-ply
Install python39-ply on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python39-ply
using yum
by running the following command:
sudo yum -y install python39-ply
How To Uninstall python39-ply on Rocky Linux 8
To uninstall only the python39-ply
package we can use the following command:
sudo dnf remove python39-ply
python39-ply Package Contents on Rocky Linux 8
/usr/lib/python3.9/site-packages/ply
/usr/lib/python3.9/site-packages/ply-3.11-py3.9.egg-info
/usr/lib/python3.9/site-packages/ply-3.11-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/ply-3.11-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/ply-3.11-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/ply-3.11-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/ply/__init__.py
/usr/lib/python3.9/site-packages/ply/__pycache__
/usr/lib/python3.9/site-packages/ply/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/cpp.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/cpp.cpython-39.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/ctokens.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/ctokens.cpython-39.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/lex.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/lex.cpython-39.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/yacc.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/yacc.cpython-39.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/ygen.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ply/__pycache__/ygen.cpython-39.pyc
/usr/lib/python3.9/site-packages/ply/cpp.py
/usr/lib/python3.9/site-packages/ply/ctokens.py
/usr/lib/python3.9/site-packages/ply/lex.py
/usr/lib/python3.9/site-packages/ply/yacc.py
/usr/lib/python3.9/site-packages/ply/ygen.py
/usr/share/doc/python39-ply
/usr/share/doc/python39-ply/CHANGES
/usr/share/doc/python39-ply/README.md
/usr/share/licenses/python39-ply
/usr/share/licenses/python39-ply/LICENSE
References
Summary
In this tutorial we learn how to install python39-ply
on Rocky Linux 8 using yum and dnf.