How To Install i2c-tools-python.x86_64 on Amazon Linux 2

In this tutorial we learn how to install i2c-tools-python.x86_64 in Amazon Linux 2. i2c-tools-python.x86_64 is Python bindings for Linux SMBus access through i2c-dev

Introduction

In this tutorial we learn how to install i2c-tools-python.x86_64 on Amazon Linux 2.

What is i2c-tools-python.x86_64

We can use yum to install i2c-tools-python.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install i2c-tools-python.x86_64.

Install i2c-tools-python.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install i2c-tools-python.x86_64 using yum by running the following command:

sudo yum -y install i2c-tools-python.x86_64

How To Uninstall i2c-tools-python.x86_64 on Amazon Linux 2

To uninstall only the i2c-tools-python.x86_64 package we can use the following command:

sudo yum remove i2c-tools-python.x86_64

i2c-tools-python.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/smbus-1.1-py2.7.egg-info
/usr/lib64/python2.7/site-packages/smbus.so
/usr/share/doc/i2c-tools-python-3.1.0
/usr/share/doc/i2c-tools-python-3.1.0/README

References

Summary

In this tutorial we learn how to install i2c-tools-python.x86_64 on Amazon Linux 2 using yum.