How To Install libfdisk on Fedora 36

In this tutorial we learn how to install libfdisk in Fedora 36. libfdisk is Partitioning library for fdisk-like programs.

Introduction

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

What is libfdisk

This is library for fdisk-like programs, part of util-linux.

We can use yum or dnf to install libfdisk on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install libfdisk.

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

sudo dnf -y install libfdisk

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

sudo yum -y install libfdisk

How To Uninstall libfdisk on Fedora 36

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

sudo dnf remove libfdisk

libfdisk Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/8677147961a2fa01665bee08e8eaaefd3f29b4
/usr/lib64/libfdisk.so.1
/usr/lib64/libfdisk.so.1.1.0
/usr/share/licenses/libfdisk
/usr/share/licenses/libfdisk/COPYING
/usr/share/licenses/libfdisk/COPYING.LGPL-2.1-or-later

References

Summary

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