How To Install i2c-tools on Rocky Linux 8

In this tutorial we learn how to install i2c-tools on Rocky Linux 8. i2c-tools is A heterogeneous set of I2C tools for Linux

Introduction

In this tutorial we learn how to install i2c-tools on Rocky Linux 8.

What is i2c-tools

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

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

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

sudo dnf -y install i2c-tools

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

sudo yum -y install i2c-tools

How To Uninstall i2c-tools on Rocky Linux 8

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

sudo dnf remove i2c-tools

i2c-tools Package Contents on Rocky Linux 8

/etc/udev/makedev.d/99-i2c-dev.nodes
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/0d04ded584198da5d03b3cd012c4010aa5b33a
/usr/lib/.build-id/49
/usr/lib/.build-id/49/bf9a52cd292e3e0a0fc3c6e2fba7aa423cb1fa
/usr/lib/.build-id/61
/usr/lib/.build-id/61/d870be9a4e4b4f5631ef0a5c69f96d848f0db4
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/9c5780a1ace455290e94a424d9e4f799079f1c
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/b299f80f64cace5409e9298ecf6be4e692f5c8
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/c3d4e83b24cf1ac4f2ec7d6d279895b712ae00
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/2a59f0ecc70a569b5bd84080f3882cac0c6085
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/1a4fe1c5369e20b0d4504d83b503ffb935811b
/usr/lib/modprobe.d/i2c-dev.conf
/usr/lib/modules-load.d/i2c-tools.conf
/usr/sbin/i2cdetect
/usr/sbin/i2cdump
/usr/sbin/i2cget
/usr/sbin/i2cset
/usr/sbin/i2ctransfer
/usr/share/doc/i2c-tools
/usr/share/doc/i2c-tools/CHANGES
/usr/share/doc/i2c-tools/COPYING
/usr/share/doc/i2c-tools/README
/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
/usr/share/man/man8/i2ctransfer.8.gz

References

Summary

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