How To Install python3-gccinvocation on Fedora 36

In this tutorial we learn how to install python3-gccinvocation in Fedora 36. python3-gccinvocation is Library for parsing GCC command-line options

Introduction

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

What is python3-gccinvocation

“gccinvocation” is a python module that can parse gcc command lines and extract data of interest e.g. include paths, defines, etc.

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

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

sudo dnf -y install python3-gccinvocation

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

sudo yum -y install python3-gccinvocation

How To Uninstall python3-gccinvocation on Fedora 36

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

sudo dnf remove python3-gccinvocation

python3-gccinvocation Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/__pycache__/gccinvocation.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/gccinvocation.cpython-310.pyc
/usr/lib/python3.10/site-packages/gccinvocation-0.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/gccinvocation.py
/usr/share/doc/python3-gccinvocation
/usr/share/doc/python3-gccinvocation/README.rst
/usr/share/doc/python3-gccinvocation/lgpl-2.1.txt

References

Summary

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