How To Install python3-gast on Fedora 36

In this tutorial we learn how to install python3-gast in Fedora 36. python3-gast is Python AST that abstracts the underlying Python version

Introduction

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

What is python3-gast

A generic AST to represent Python2 and Python3’s Abstract Syntax Tree (AST). GAST provides a compatibility layer between the AST of various Python versions, as produced by ast.parse from the standard ast module.

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

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

sudo dnf -y install python3-gast

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

sudo yum -y install python3-gast

How To Uninstall python3-gast on Fedora 36

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

sudo dnf remove python3-gast

python3-gast Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/gast
/usr/lib/python3.10/site-packages/gast-0.5.3.dist-info
/usr/lib/python3.10/site-packages/gast-0.5.3.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/gast-0.5.3.dist-info/LICENSE
/usr/lib/python3.10/site-packages/gast-0.5.3.dist-info/METADATA
/usr/lib/python3.10/site-packages/gast-0.5.3.dist-info/WHEEL
/usr/lib/python3.10/site-packages/gast-0.5.3.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/gast/__init__.py
/usr/lib/python3.10/site-packages/gast/__pycache__
/usr/lib/python3.10/site-packages/gast/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/ast2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/ast2.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/ast3.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/ast3.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/astn.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/astn.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/gast.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/gast.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/unparser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/unparser.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/gast/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/gast/ast2.py
/usr/lib/python3.10/site-packages/gast/ast3.py
/usr/lib/python3.10/site-packages/gast/astn.py
/usr/lib/python3.10/site-packages/gast/gast.py
/usr/lib/python3.10/site-packages/gast/unparser.py
/usr/lib/python3.10/site-packages/gast/version.py
/usr/share/doc/python3-gast
/usr/share/doc/python3-gast/README.rst
/usr/share/licenses/python3-gast
/usr/share/licenses/python3-gast/LICENSE

References

Summary

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