How To Install python3-cffi on Fedora 36

In this tutorial we learn how to install python3-cffi in Fedora 36. python3-cffi is Foreign Function Interface for Python 3 to call C code

Introduction

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

What is python3-cffi

Foreign Function Interface for Python, providing a convenient and reliable way of calling existing C code from Python. The interface is based on LuaJIT’s FFI.

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

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

sudo dnf -y install python3-cffi

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

sudo yum -y install python3-cffi

How To Uninstall python3-cffi on Fedora 36

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

sudo dnf remove python3-cffi

python3-cffi Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/56
/usr/lib/.build-id/56/784f50cf70028d6691263f159fa8715f053139
/usr/lib64/python3.10/site-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/cffi
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/entry_points.txt
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/cffi-1.15.0-py3.10.egg-info/top_level.txt
/usr/lib64/python3.10/site-packages/cffi/__init__.py
/usr/lib64/python3.10/site-packages/cffi/__pycache__
/usr/lib64/python3.10/site-packages/cffi/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/api.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/api.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/backend_ctypes.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/backend_ctypes.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/cffi_opcode.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/cffi_opcode.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/commontypes.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/commontypes.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/cparser.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/cparser.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/error.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/error.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/ffiplatform.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/ffiplatform.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/lock.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/lock.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/model.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/model.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/pkgconfig.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/pkgconfig.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/recompiler.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/recompiler.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/setuptools_ext.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/setuptools_ext.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/vengine_cpy.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/vengine_cpy.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/vengine_gen.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/vengine_gen.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/verifier.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/cffi/__pycache__/verifier.cpython-310.pyc
/usr/lib64/python3.10/site-packages/cffi/_cffi_errors.h
/usr/lib64/python3.10/site-packages/cffi/_cffi_include.h
/usr/lib64/python3.10/site-packages/cffi/_embedding.h
/usr/lib64/python3.10/site-packages/cffi/api.py
/usr/lib64/python3.10/site-packages/cffi/backend_ctypes.py
/usr/lib64/python3.10/site-packages/cffi/cffi_opcode.py
/usr/lib64/python3.10/site-packages/cffi/commontypes.py
/usr/lib64/python3.10/site-packages/cffi/cparser.py
/usr/lib64/python3.10/site-packages/cffi/error.py
/usr/lib64/python3.10/site-packages/cffi/ffiplatform.py
/usr/lib64/python3.10/site-packages/cffi/lock.py
/usr/lib64/python3.10/site-packages/cffi/model.py
/usr/lib64/python3.10/site-packages/cffi/parse_c_type.h
/usr/lib64/python3.10/site-packages/cffi/pkgconfig.py
/usr/lib64/python3.10/site-packages/cffi/recompiler.py
/usr/lib64/python3.10/site-packages/cffi/setuptools_ext.py
/usr/lib64/python3.10/site-packages/cffi/vengine_cpy.py
/usr/lib64/python3.10/site-packages/cffi/vengine_gen.py
/usr/lib64/python3.10/site-packages/cffi/verifier.py
/usr/share/doc/python3-cffi
/usr/share/doc/python3-cffi/PKG-INFO
/usr/share/licenses/python3-cffi
/usr/share/licenses/python3-cffi/LICENSE

References

Summary

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