How To Install python3-libgpiod on Rocky Linux 8

In this tutorial we learn how to install python3-libgpiod on Rocky Linux 8. python3-libgpiod is Python 3 bindings for libgpiod

Introduction

In this tutorial we learn how to install python3-libgpiod on Rocky Linux 8.

What is python3-libgpiod

Python 3 bindings for development with libgpiod.

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

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

sudo dnf -y install python3-libgpiod

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

sudo yum -y install python3-libgpiod

How To Uninstall python3-libgpiod on Rocky Linux 8

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

sudo dnf remove python3-libgpiod

python3-libgpiod Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/410837d7648055674393c6dacdd92f222785f9
/usr/lib64/python3.6/site-packages/gpiod.so

References

Summary

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