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

In this tutorial we learn how to install i2c-tools.x86_64 in Amazon Linux 2. i2c-tools.x86_64 is A heterogeneous set of I2C tools for Linux

Introduction

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

What is i2c-tools.x86_64

This package contains a heterogeneous set of I2C tools for Linux a bus probing tool, a chip dumper, register-level access helpers, EEPROM decoding scripts, and more.

We can use yum to install i2c-tools.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.x86_64.

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

sudo yum -y install i2c-tools.x86_64

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

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

sudo yum remove i2c-tools.x86_64

i2c-tools.x86_64 Package Contents on Amazon Linux 2

/etc/udev/makedev.d/99-i2c-dev.nodes
/usr/bin/decode-dimms
/usr/bin/decode-vaio
/usr/lib/modprobe.d/i2c-dev.conf
/usr/sbin/i2c-stub-from-dump
/usr/sbin/i2cdetect
/usr/sbin/i2cdump
/usr/sbin/i2cget
/usr/sbin/i2cset
/usr/share/doc/i2c-tools-3.1.0
/usr/share/doc/i2c-tools-3.1.0/CHANGES
/usr/share/doc/i2c-tools-3.1.0/COPYING
/usr/share/doc/i2c-tools-3.1.0/README
/usr/share/man/man1/decode-dimms.1.gz
/usr/share/man/man1/decode-vaio.1.gz
/usr/share/man/man8/i2c-stub-from-dump.8.gz
/usr/share/man/man8/i2cdetect.8.gz
/usr/share/man/man8/i2cdump.8.gz
/usr/share/man/man8/i2cget.8.gz
/usr/share/man/man8/i2cset.8.gz

References

Summary

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