How To Install python3-kmod on Fedora 36

In this tutorial we learn how to install python3-kmod in Fedora 36. python3-kmod is Python module to work with kernel modules

Introduction

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

What is python3-kmod

Python module to allow listing, loading, and unloading Linux kernel modules, using libkmod.

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

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

sudo dnf -y install python3-kmod

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

sudo yum -y install python3-kmod

How To Uninstall python3-kmod on Fedora 36

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

sudo dnf remove python3-kmod

python3-kmod Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/819476c7c0f28221813b2f32bec17cecedda47
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/3a53cfc80fd44aa023b14186f5a7f9ce2ba620
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/df48c3b557996f72045dad604644b4d29827c5
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/29397fe15d1a5ded6d88be3cd09b1155533be3
/usr/lib64/python3.10/site-packages/kmod
/usr/lib64/python3.10/site-packages/kmod-0.1-py3.10.egg-info
/usr/lib64/python3.10/site-packages/kmod/__init__.py
/usr/lib64/python3.10/site-packages/kmod/__pycache__
/usr/lib64/python3.10/site-packages/kmod/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/kmod/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/kmod/__pycache__/error.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/kmod/__pycache__/error.cpython-310.pyc
/usr/lib64/python3.10/site-packages/kmod/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/kmod/__pycache__/version.cpython-310.pyc
/usr/lib64/python3.10/site-packages/kmod/_util.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/kmod/error.py
/usr/lib64/python3.10/site-packages/kmod/kmod.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/kmod/list.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/kmod/module.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/kmod/version.py
/usr/share/doc/python3-kmod
/usr/share/doc/python3-kmod/COPYING.LESSER
/usr/share/doc/python3-kmod/README

References

Summary

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