How To Install libi2c on Rocky Linux 8
Introduction
In this tutorial we learn how to install libi2c
on Rocky Linux 8.
What is libi2c
libi2c offers a way for applications to interact with the devices connected to the I2C or SMBus buses of the system.
We can use yum
or dnf
to install libi2c
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libi2c.
Install libi2c 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 libi2c
using dnf
by running the following command:
sudo dnf -y install libi2c
Install libi2c 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 libi2c
using yum
by running the following command:
sudo yum -y install libi2c
How To Uninstall libi2c on Rocky Linux 8
To uninstall only the libi2c
package we can use the following command:
sudo dnf remove libi2c
libi2c Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/40
/usr/lib/.build-id/40/d5763d067f81a5923416453e8f02164de89563
/usr/lib/libi2c.so.0
/usr/lib/libi2c.so.0.1.0
/usr/share/doc/libi2c
/usr/share/doc/libi2c/COPYING.LGPL
/usr/lib/.build-id
/usr/lib/.build-id/92
/usr/lib/.build-id/92/57e427303b37a0e35a418f5e71d17d4c045dc0
/usr/lib64/libi2c.so.0
/usr/lib64/libi2c.so.0.1.0
/usr/share/doc/libi2c
/usr/share/doc/libi2c/COPYING.LGPL
References
Summary
In this tutorial we learn how to install libi2c
on Rocky Linux 8 using yum and dnf.