How To Install libgpiod on Fedora 34
Introduction
In this tutorial we learn how to install libgpiod
on Fedora 34.
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). libgpiod 1.6.3 1.fc34 x86_64 36 k libgpiod-1.6.3-1.fc34.src.rpm fedora C library and tools for interacting with linux GPIO char device https LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libgpiod.
Install libgpiod on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install libgpiod
using dnf
by running the following command:
sudo dnf -y install libgpiod
Install libgpiod on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 Fedora 34
To uninstall only the libgpiod
package we can use the following command:
sudo dnf remove libgpiod
libgpiod Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/68
/usr/lib/.build-id/68/ed95e78f2b3838a4f64926b78547d952bcef2c
/usr/lib64/libgpiod.so.2
/usr/lib64/libgpiod.so.2.2.2
/usr/share/doc/libgpiod
/usr/share/doc/libgpiod/README
/usr/share/licenses/libgpiod
/usr/share/licenses/libgpiod/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/eb2e00900b558259f3c3e09be84b8eacaa561c
/usr/lib/libgpiod.so.2
/usr/lib/libgpiod.so.2.2.2
/usr/share/doc/libgpiod
/usr/share/doc/libgpiod/README
/usr/share/licenses/libgpiod
/usr/share/licenses/libgpiod/COPYING
References
- [libgpiod website](https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/ https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/)
Summary
In this tutorial we learn how to install libgpiod
on Fedora 34 using yum and dnf.