How To Install python38-pycparser on Rocky Linux 8

In this tutorial we learn how to install python38-pycparser on Rocky Linux 8. python38-pycparser is C parser and AST generator written in Python

Introduction

In this tutorial we learn how to install python38-pycparser on Rocky Linux 8.

What is python38-pycparser

pycparser is a complete parser for the C language, written in pure Python. It is a module designed to be easily integrated into applications that need to parse C source code.

We can use yum or dnf to install python38-pycparser on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python38-pycparser.

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

sudo dnf -y install python38-pycparser

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

sudo yum -y install python38-pycparser

How To Uninstall python38-pycparser on Rocky Linux 8

To uninstall only the python38-pycparser package we can use the following command:

sudo dnf remove python38-pycparser

python38-pycparser Package Contents on Rocky Linux 8

/usr/lib/python3.8/site-packages/pycparser
/usr/lib/python3.8/site-packages/pycparser-2.19-py3.8.egg-info
/usr/lib/python3.8/site-packages/pycparser-2.19-py3.8.egg-info/PKG-INFO
/usr/lib/python3.8/site-packages/pycparser-2.19-py3.8.egg-info/SOURCES.txt
/usr/lib/python3.8/site-packages/pycparser-2.19-py3.8.egg-info/dependency_links.txt
/usr/lib/python3.8/site-packages/pycparser-2.19-py3.8.egg-info/top_level.txt
/usr/lib/python3.8/site-packages/pycparser/__init__.py
/usr/lib/python3.8/site-packages/pycparser/__pycache__
/usr/lib/python3.8/site-packages/pycparser/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/_ast_gen.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/_ast_gen.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/_build_tables.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/_build_tables.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/ast_transforms.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/ast_transforms.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_ast.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_ast.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_generator.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_generator.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_lexer.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_lexer.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_parser.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/c_parser.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/lextab.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/lextab.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/plyparser.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/plyparser.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/yacctab.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pycparser/__pycache__/yacctab.cpython-38.pyc
/usr/lib/python3.8/site-packages/pycparser/_ast_gen.py
/usr/lib/python3.8/site-packages/pycparser/_build_tables.py
/usr/lib/python3.8/site-packages/pycparser/_c_ast.cfg
/usr/lib/python3.8/site-packages/pycparser/ast_transforms.py
/usr/lib/python3.8/site-packages/pycparser/c_ast.py
/usr/lib/python3.8/site-packages/pycparser/c_generator.py
/usr/lib/python3.8/site-packages/pycparser/c_lexer.py
/usr/lib/python3.8/site-packages/pycparser/c_parser.py
/usr/lib/python3.8/site-packages/pycparser/lextab.py
/usr/lib/python3.8/site-packages/pycparser/plyparser.py
/usr/lib/python3.8/site-packages/pycparser/yacctab.py
/usr/share/doc/python38-pycparser
/usr/share/doc/python38-pycparser/examples
/usr/share/doc/python38-pycparser/examples/README.rst
/usr/share/doc/python38-pycparser/examples/c-to-c.py
/usr/share/doc/python38-pycparser/examples/c_files
/usr/share/doc/python38-pycparser/examples/c_files/funky.c
/usr/share/doc/python38-pycparser/examples/c_files/hash.c
/usr/share/doc/python38-pycparser/examples/c_files/memmgr.c
/usr/share/doc/python38-pycparser/examples/c_files/memmgr.h
/usr/share/doc/python38-pycparser/examples/c_files/year.c
/usr/share/doc/python38-pycparser/examples/c_json.py
/usr/share/doc/python38-pycparser/examples/cdecl.py
/usr/share/doc/python38-pycparser/examples/dump_ast.py
/usr/share/doc/python38-pycparser/examples/explore_ast.py
/usr/share/doc/python38-pycparser/examples/func_calls.py
/usr/share/doc/python38-pycparser/examples/func_defs.py
/usr/share/doc/python38-pycparser/examples/rewrite_ast.py
/usr/share/doc/python38-pycparser/examples/serialize_ast.py
/usr/share/doc/python38-pycparser/examples/using_cpp_libc.py
/usr/share/doc/python38-pycparser/examples/using_gcc_E_libc.py
/usr/share/licenses/python38-pycparser
/usr/share/licenses/python38-pycparser/LICENSE

References

Summary

In this tutorial we learn how to install python38-pycparser on Rocky Linux 8 using yum and dnf.