How To Install python-ply.noarch on Amazon Linux 2
Introduction
In this tutorial we learn how to install python-ply.noarch
on Amazon Linux 2.
What is python-ply.noarch
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
to install python-ply.noarch
on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-ply.noarch.
Install python-ply.noarch on Amazon Linux 2 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python-ply.noarch
using yum
by running the following command:
sudo yum -y install python-ply.noarch
How To Uninstall python-ply.noarch on Amazon Linux 2
To uninstall only the python-ply.noarch
package we can use the following command:
sudo yum remove python-ply.noarch
python-ply.noarch Package Contents on Amazon Linux 2
/usr/lib/python2.7/site-packages/ply
/usr/lib/python2.7/site-packages/ply-3.4-py2.7.egg-info
/usr/lib/python2.7/site-packages/ply/__init__.py
/usr/lib/python2.7/site-packages/ply/__init__.pyc
/usr/lib/python2.7/site-packages/ply/__init__.pyo
/usr/lib/python2.7/site-packages/ply/cpp.py
/usr/lib/python2.7/site-packages/ply/cpp.pyc
/usr/lib/python2.7/site-packages/ply/cpp.pyo
/usr/lib/python2.7/site-packages/ply/ctokens.py
/usr/lib/python2.7/site-packages/ply/ctokens.pyc
/usr/lib/python2.7/site-packages/ply/ctokens.pyo
/usr/lib/python2.7/site-packages/ply/lex.py
/usr/lib/python2.7/site-packages/ply/lex.pyc
/usr/lib/python2.7/site-packages/ply/lex.pyo
/usr/lib/python2.7/site-packages/ply/yacc.py
/usr/lib/python2.7/site-packages/ply/yacc.pyc
/usr/lib/python2.7/site-packages/ply/yacc.pyo
/usr/share/doc/python-ply-3.4
/usr/share/doc/python-ply-3.4/CHANGES
/usr/share/doc/python-ply-3.4/README
/usr/share/doc/python-ply-3.4/example
/usr/share/doc/python-ply-3.4/example/BASIC
/usr/share/doc/python-ply-3.4/example/BASIC/README
/usr/share/doc/python-ply-3.4/example/BASIC/basic.py
/usr/share/doc/python-ply-3.4/example/BASIC/basiclex.py
/usr/share/doc/python-ply-3.4/example/BASIC/basiclog.py
/usr/share/doc/python-ply-3.4/example/BASIC/basinterp.py
/usr/share/doc/python-ply-3.4/example/BASIC/basparse.py
/usr/share/doc/python-ply-3.4/example/BASIC/dim.bas
/usr/share/doc/python-ply-3.4/example/BASIC/func.bas
/usr/share/doc/python-ply-3.4/example/BASIC/gcd.bas
/usr/share/doc/python-ply-3.4/example/BASIC/gosub.bas
/usr/share/doc/python-ply-3.4/example/BASIC/hello.bas
/usr/share/doc/python-ply-3.4/example/BASIC/linear.bas
/usr/share/doc/python-ply-3.4/example/BASIC/maxsin.bas
/usr/share/doc/python-ply-3.4/example/BASIC/powers.bas
/usr/share/doc/python-ply-3.4/example/BASIC/rand.bas
/usr/share/doc/python-ply-3.4/example/BASIC/sales.bas
/usr/share/doc/python-ply-3.4/example/BASIC/sears.bas
/usr/share/doc/python-ply-3.4/example/BASIC/sqrt1.bas
/usr/share/doc/python-ply-3.4/example/BASIC/sqrt2.bas
/usr/share/doc/python-ply-3.4/example/GardenSnake
/usr/share/doc/python-ply-3.4/example/GardenSnake/GardenSnake.py
/usr/share/doc/python-ply-3.4/example/GardenSnake/README
/usr/share/doc/python-ply-3.4/example/README
/usr/share/doc/python-ply-3.4/example/ansic
/usr/share/doc/python-ply-3.4/example/ansic/README
/usr/share/doc/python-ply-3.4/example/ansic/clex.py
/usr/share/doc/python-ply-3.4/example/ansic/cparse.py
/usr/share/doc/python-ply-3.4/example/calc
/usr/share/doc/python-ply-3.4/example/calc/calc.py
/usr/share/doc/python-ply-3.4/example/calcdebug
/usr/share/doc/python-ply-3.4/example/calcdebug/calc.py
/usr/share/doc/python-ply-3.4/example/classcalc
/usr/share/doc/python-ply-3.4/example/classcalc/calc.py
/usr/share/doc/python-ply-3.4/example/cleanup.sh
/usr/share/doc/python-ply-3.4/example/closurecalc
/usr/share/doc/python-ply-3.4/example/closurecalc/calc.py
/usr/share/doc/python-ply-3.4/example/hedit
/usr/share/doc/python-ply-3.4/example/hedit/hedit.py
/usr/share/doc/python-ply-3.4/example/newclasscalc
/usr/share/doc/python-ply-3.4/example/newclasscalc/calc.py
/usr/share/doc/python-ply-3.4/example/optcalc
/usr/share/doc/python-ply-3.4/example/optcalc/README
/usr/share/doc/python-ply-3.4/example/optcalc/calc.py
/usr/share/doc/python-ply-3.4/example/unicalc
/usr/share/doc/python-ply-3.4/example/unicalc/calc.py
/usr/share/doc/python-ply-3.4/example/yply
/usr/share/doc/python-ply-3.4/example/yply/README
/usr/share/doc/python-ply-3.4/example/yply/ylex.py
/usr/share/doc/python-ply-3.4/example/yply/yparse.py
/usr/share/doc/python-ply-3.4/example/yply/yply.py
References
Summary
In this tutorial we learn how to install python-ply.noarch
on Amazon Linux 2 using yum.