How To Install libgpiod on Fedora 36

In this tutorial we learn how to install libgpiod in Fedora 36. libgpiod is C library and tools for interacting with linux GPIO char device

Introduction

In this tutorial we learn how to install libgpiod on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libgpiod.

Install libgpiod on Fedora 36 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 Fedora 36 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 Fedora 36

To uninstall only the libgpiod package we can use the following command:

sudo dnf remove libgpiod

libgpiod Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/7c9359408ddd6310b095fd924e3edee8363c56
/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

References

Summary

In this tutorial we learn how to install libgpiod on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).


title: “How To Install libgpiod on Fedora 36” linkTitle: “libgpiod” type: “docs” description: “In this tutorial we learn how to install libgpiod in Fedora 36. libgpiod is C library and tools for interacting with linux GPIO char device” date: “2022-08-17” lastmod: “2022-08-17” #image: /images/fedora/36/libgpiod-featured.png

Introduction

In this tutorial we learn how to install libgpiod on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libgpiod.

Install libgpiod on Fedora 36 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 Fedora 36 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 Fedora 36

To uninstall only the libgpiod package we can use the following command:

sudo dnf remove libgpiod

libgpiod Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/f4739912c7c985223ad4fe25aec91413ea5135
/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

Summary

In this tutorial we learn how to install libgpiod on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).