How To Install libmtp on Fedora 34

libmtp is Software library for MTP media players Software library for MTP media players

Introduction

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

What is libmtp

This package provides a software library for communicating with MTP (Media Transfer Protocol) media players, typically audio players, video players etc. libmtp 1.1.18 2.fc34 x86_64 158 k libmtp-1.1.18-2.fc34.src.rpm fedora Software library for MTP media players http LGPLv2+ This package provides a software library for communicating with MTP (Media Transfer Protocol) media players, typically audio players, video players etc.

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

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

sudo dnf -y install libmtp

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

sudo yum -y install libmtp

How To Uninstall libmtp on Fedora 34

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

sudo dnf remove libmtp

libmtp Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/4730d6e98df0251d523a26467482cd073320e2
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/b8a55fef8c4b091f1d907a1b43d3406ee725a8
/usr/lib/libmtp.so.9
/usr/lib/libmtp.so.9.4.0
/usr/lib/udev/hwdb.d/69-libmtp.hwdb
/usr/lib/udev/mtp-probe
/usr/lib/udev/rules.d/69-libmtp.rules
/usr/share/licenses/libmtp
/usr/share/licenses/libmtp/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/72
/usr/lib/.build-id/72/ed5db998dffb42d558b6851187d08debc225dd
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/515f251321e15b4f02c7313e8f0c784c126a7c
/usr/lib/udev/hwdb.d/69-libmtp.hwdb
/usr/lib/udev/mtp-probe
/usr/lib/udev/rules.d/69-libmtp.rules
/usr/lib64/libmtp.so.9
/usr/lib64/libmtp.so.9.4.0
/usr/share/licenses/libmtp
/usr/share/licenses/libmtp/COPYING

References

Summary

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