How To Install python3-i2c-tools on Fedora 36

In this tutorial we learn how to install python3-i2c-tools in Fedora 36. python3-i2c-tools is Python 3 bindings for Linux SMBus access through i2c-dev

Introduction

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

What is python3-i2c-tools

Python 3 bindings for Linux SMBus access through i2c-dev

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

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

sudo dnf -y install python3-i2c-tools

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

sudo yum -y install python3-i2c-tools

How To Uninstall python3-i2c-tools on Fedora 36

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

sudo dnf remove python3-i2c-tools

python3-i2c-tools Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/4d71fd4ce2e416ef6950e4a1d264b5eff75c2b
/usr/lib64/python3.10/site-packages/smbus-1.1-py3.10.egg-info
/usr/lib64/python3.10/site-packages/smbus.cpython-310-x86_64-linux-gnu.so
/usr/share/doc/python3-i2c-tools
/usr/share/doc/python3-i2c-tools/README

References

Summary

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