How To Install python3-sly on Fedora 36

In this tutorial we learn how to install python3-sly in Fedora 36. python3-sly is An implementation of lex and yacc for Python 3

Introduction

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

What is python3-sly

SLY is a pure Python implementation of the lex and yacc tools commonly used to write parsers and compilers. Parsing is based on the same LALR(1) algorithm used by many yacc tools.

We can use yum or dnf to install python3-sly on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sly.

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

sudo dnf -y install python3-sly

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

sudo yum -y install python3-sly

How To Uninstall python3-sly on Fedora 36

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

sudo dnf remove python3-sly

python3-sly Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/sly
/usr/lib/python3.10/site-packages/sly-0.4.dist-info
/usr/lib/python3.10/site-packages/sly-0.4.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/sly-0.4.dist-info/LICENSE
/usr/lib/python3.10/site-packages/sly-0.4.dist-info/METADATA
/usr/lib/python3.10/site-packages/sly-0.4.dist-info/WHEEL
/usr/lib/python3.10/site-packages/sly-0.4.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/sly/__init__.py
/usr/lib/python3.10/site-packages/sly/__pycache__
/usr/lib/python3.10/site-packages/sly/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/ast.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/ast.cpython-310.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/docparse.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/docparse.cpython-310.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/lex.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/lex.cpython-310.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/yacc.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sly/__pycache__/yacc.cpython-310.pyc
/usr/lib/python3.10/site-packages/sly/ast.py
/usr/lib/python3.10/site-packages/sly/docparse.py
/usr/lib/python3.10/site-packages/sly/lex.py
/usr/lib/python3.10/site-packages/sly/yacc.py
/usr/share/doc/python3-sly
/usr/share/doc/python3-sly/README.rst
/usr/share/licenses/python3-sly
/usr/share/licenses/python3-sly/LICENSE

References

Summary

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