How To Install libmount on Fedora 34

libmount is Device mounting library Device mounting library

Introduction

In this tutorial we learn how to install libmount on Fedora 34.

What is libmount

This is the device mounting library, part of util-linux. libmount 2.36.2 1.fc34 i686 138 k util-linux-2.36.2-1.fc34.src.rpm fedora Device mounting library http LGPLv2+ This is the device mounting library, part of util-linux.

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

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

sudo dnf -y install libmount

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

sudo yum -y install libmount

How To Uninstall libmount on Fedora 34

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

sudo dnf remove libmount

libmount Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/b2
/usr/lib/.build-id/b2/8f0d9a729f5d2df17e9c46cde2de93927d1dfd
/usr/lib64/libmount.so.1
/usr/lib64/libmount.so.1.1.0
/usr/share/licenses/libmount
/usr/share/licenses/libmount/COPYING
/usr/share/licenses/libmount/COPYING.LGPL-2.1-or-later
/usr/lib/.build-id
/usr/lib/.build-id/bb/0ae16742287f182df2dbde06f9a48bdaa166ed
/usr/lib/libmount.so.1
/usr/lib/libmount.so.1.1.0
/usr/share/licenses/libmount
/usr/share/licenses/libmount/COPYING
/usr/share/licenses/libmount/COPYING.LGPL-2.1-or-later

References

Summary

In this tutorial we learn how to install libmount on Fedora 34 using yum and dnf.