How To Install python38-devel on Rocky Linux 8

In this tutorial we learn how to install python38-devel on Rocky Linux 8. python38-devel is Libraries and header files needed for Python development

Introduction

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

What is python38-devel

This package contains the header files and configuration needed to compile Python extension modules (typically written in C or C++), to embed Python into other programs, and to make binary distributions for Python libraries. It also contains the necessary macros to build RPM packages with Python modules and 2to3 tool, an automatic source converter from Python 2.X. If you want to build an RPM against the python38 module, you also need to install the python38-rpm-macros package.

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

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

sudo dnf -y install python38-devel

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

sudo yum -y install python38-devel

How To Uninstall python38-devel on Rocky Linux 8

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

sudo dnf remove python38-devel

python38-devel Package Contents on Rocky Linux 8

/usr/bin/2to3-3.8
/usr/bin/msgfmt3.8.py
/usr/bin/pathfix3.8.py
/usr/bin/pygettext3.8.py
/usr/bin/python3-config
/usr/bin/python3.8-config
/usr/bin/python3.8-x86_64-config
/usr/include/python3.8/Python-ast.h
/usr/include/python3.8/Python.h
/usr/include/python3.8/_hashopenssl.h
/usr/include/python3.8/abstract.h
/usr/include/python3.8/asdl.h
/usr/include/python3.8/ast.h
/usr/include/python3.8/bitset.h
/usr/include/python3.8/bltinmodule.h
/usr/include/python3.8/boolobject.h
/usr/include/python3.8/bytearrayobject.h
/usr/include/python3.8/bytes_methods.h
/usr/include/python3.8/bytesobject.h
/usr/include/python3.8/cellobject.h
/usr/include/python3.8/ceval.h
/usr/include/python3.8/classobject.h
/usr/include/python3.8/code.h
/usr/include/python3.8/codecs.h
/usr/include/python3.8/compile.h
/usr/include/python3.8/complexobject.h
/usr/include/python3.8/context.h
/usr/include/python3.8/cpython
/usr/include/python3.8/cpython/abstract.h
/usr/include/python3.8/cpython/dictobject.h
/usr/include/python3.8/cpython/fileobject.h
/usr/include/python3.8/cpython/initconfig.h
/usr/include/python3.8/cpython/interpreteridobject.h
/usr/include/python3.8/cpython/object.h
/usr/include/python3.8/cpython/objimpl.h
/usr/include/python3.8/cpython/pyerrors.h
/usr/include/python3.8/cpython/pylifecycle.h
/usr/include/python3.8/cpython/pymem.h
/usr/include/python3.8/cpython/pystate.h
/usr/include/python3.8/cpython/sysmodule.h
/usr/include/python3.8/cpython/traceback.h
/usr/include/python3.8/cpython/tupleobject.h
/usr/include/python3.8/cpython/unicodeobject.h
/usr/include/python3.8/datetime.h
/usr/include/python3.8/descrobject.h
/usr/include/python3.8/dictobject.h
/usr/include/python3.8/dtoa.h
/usr/include/python3.8/dynamic_annotations.h
/usr/include/python3.8/enumobject.h
/usr/include/python3.8/errcode.h
/usr/include/python3.8/eval.h
/usr/include/python3.8/fileobject.h
/usr/include/python3.8/fileutils.h
/usr/include/python3.8/floatobject.h
/usr/include/python3.8/frameobject.h
/usr/include/python3.8/funcobject.h
/usr/include/python3.8/genobject.h
/usr/include/python3.8/graminit.h
/usr/include/python3.8/grammar.h
/usr/include/python3.8/import.h
/usr/include/python3.8/internal
/usr/include/python3.8/internal/pycore_accu.h
/usr/include/python3.8/internal/pycore_atomic.h
/usr/include/python3.8/internal/pycore_ceval.h
/usr/include/python3.8/internal/pycore_code.h
/usr/include/python3.8/internal/pycore_condvar.h
/usr/include/python3.8/internal/pycore_context.h
/usr/include/python3.8/internal/pycore_fileutils.h
/usr/include/python3.8/internal/pycore_getopt.h
/usr/include/python3.8/internal/pycore_gil.h
/usr/include/python3.8/internal/pycore_hamt.h
/usr/include/python3.8/internal/pycore_initconfig.h
/usr/include/python3.8/internal/pycore_object.h
/usr/include/python3.8/internal/pycore_pathconfig.h
/usr/include/python3.8/internal/pycore_pyerrors.h
/usr/include/python3.8/internal/pycore_pyhash.h
/usr/include/python3.8/internal/pycore_pylifecycle.h
/usr/include/python3.8/internal/pycore_pymem.h
/usr/include/python3.8/internal/pycore_pystate.h
/usr/include/python3.8/internal/pycore_traceback.h
/usr/include/python3.8/internal/pycore_tupleobject.h
/usr/include/python3.8/internal/pycore_warnings.h
/usr/include/python3.8/interpreteridobject.h
/usr/include/python3.8/intrcheck.h
/usr/include/python3.8/iterobject.h
/usr/include/python3.8/listobject.h
/usr/include/python3.8/longintrepr.h
/usr/include/python3.8/longobject.h
/usr/include/python3.8/marshal.h
/usr/include/python3.8/memoryobject.h
/usr/include/python3.8/methodobject.h
/usr/include/python3.8/modsupport.h
/usr/include/python3.8/moduleobject.h
/usr/include/python3.8/namespaceobject.h
/usr/include/python3.8/node.h
/usr/include/python3.8/object.h
/usr/include/python3.8/objimpl.h
/usr/include/python3.8/odictobject.h
/usr/include/python3.8/opcode.h
/usr/include/python3.8/osdefs.h
/usr/include/python3.8/osmodule.h
/usr/include/python3.8/parsetok.h
/usr/include/python3.8/patchlevel.h
/usr/include/python3.8/picklebufobject.h
/usr/include/python3.8/py_curses.h
/usr/include/python3.8/pyarena.h
/usr/include/python3.8/pycapsule.h
/usr/include/python3.8/pyconfig.h
/usr/include/python3.8/pyctype.h
/usr/include/python3.8/pydebug.h
/usr/include/python3.8/pydtrace.h
/usr/include/python3.8/pyerrors.h
/usr/include/python3.8/pyexpat.h
/usr/include/python3.8/pyfpe.h
/usr/include/python3.8/pyhash.h
/usr/include/python3.8/pylifecycle.h
/usr/include/python3.8/pymacconfig.h
/usr/include/python3.8/pymacro.h
/usr/include/python3.8/pymath.h
/usr/include/python3.8/pymem.h
/usr/include/python3.8/pyport.h
/usr/include/python3.8/pystate.h
/usr/include/python3.8/pystrcmp.h
/usr/include/python3.8/pystrhex.h
/usr/include/python3.8/pystrtod.h
/usr/include/python3.8/pythonrun.h
/usr/include/python3.8/pythread.h
/usr/include/python3.8/pytime.h
/usr/include/python3.8/rangeobject.h
/usr/include/python3.8/setobject.h
/usr/include/python3.8/sliceobject.h
/usr/include/python3.8/structmember.h
/usr/include/python3.8/structseq.h
/usr/include/python3.8/symtable.h
/usr/include/python3.8/sysmodule.h
/usr/include/python3.8/token.h
/usr/include/python3.8/traceback.h
/usr/include/python3.8/tracemalloc.h
/usr/include/python3.8/tupleobject.h
/usr/include/python3.8/typeslots.h
/usr/include/python3.8/ucnhash.h
/usr/include/python3.8/unicodeobject.h
/usr/include/python3.8/warnings.h
/usr/include/python3.8/weakrefobject.h
/usr/lib64/libpython3.8.so
/usr/lib64/pkgconfig/python-3.8-embed.pc
/usr/lib64/pkgconfig/python-3.8.pc
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/Setup
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/Setup.local
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/__pycache__
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/__pycache__/python-config.cpython-38.opt-1.pyc
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/__pycache__/python-config.cpython-38.opt-2.pyc
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/__pycache__/python-config.cpython-38.pyc
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/config.c
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/config.c.in
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/install-sh
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/makesetup
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/python-config.py
/usr/lib64/python3.8/config-3.8-x86_64-linux-gnu/python.o
/usr/share/doc/python38-devel
/usr/share/doc/python38-devel/README.valgrind
/usr/share/doc/python38-devel/gdbinit
/usr/share/doc/python38-devel/valgrind-python.supp

References

Summary

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