How To Install libgpiod on Rocky Linux 8
Introduction
In this tutorial we learn how to install libgpiod
on Rocky Linux 8.
What is libgpiod
libgpiod is a C library and tools for interacting with the linux GPIO character device (gpiod stands for GPIO device) The new character device interface guarantees all allocated resources are freed after closing the device file descriptor and adds several new features that are not present in the obsolete sysfs interface (like event polling, setting/reading multiple values at once or open-source and open-drain GPIOs).
We can use yum
or dnf
to install libgpiod
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libgpiod.
Install libgpiod 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 libgpiod
using dnf
by running the following command:
sudo dnf -y install libgpiod
Install libgpiod 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 libgpiod
using yum
by running the following command:
sudo yum -y install libgpiod
How To Uninstall libgpiod on Rocky Linux 8
To uninstall only the libgpiod
package we can use the following command:
sudo dnf remove libgpiod
libgpiod Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/db
/usr/lib/.build-id/db/5db113cccc854d685daccb949267918ba386db
/usr/lib64/libgpiod.so.2
/usr/lib64/libgpiod.so.2.1.3
/usr/share/doc/libgpiod
/usr/share/doc/libgpiod/README
/usr/share/licenses/libgpiod
/usr/share/licenses/libgpiod/COPYING
References
Summary
In this tutorial we learn how to install libgpiod
on Rocky Linux 8 using yum and dnf.