How To Install libmtp on Rocky Linux 8
Introduction
In this tutorial we learn how to install libmtp on Rocky Linux 8.
What is libmtp
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libmtp.
Install libmtp on Rocky Linux 8 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install libmtp using dnf by running the following command:
sudo dnf -y install libmtp
Install libmtp on Rocky Linux 8 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
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 Rocky Linux 8
To uninstall only the libmtp package we can use the following command:
sudo dnf remove libmtp
libmtp Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/2d0acb0cdcd0c2362eb99f7c5bc13380ff6f75
/usr/lib/.build-id/16
/usr/lib/.build-id/16/80f1d52a170d6369a5a528ee20131817af71d3
/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.3.0
/usr/share/licenses/libmtp
/usr/share/licenses/libmtp/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/328289d4666d05a461cd491bfe023ec7345991
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/9153460a54c0b9391d07275df0a3ab424b36c5
/usr/lib/libmtp.so.9
/usr/lib/libmtp.so.9.3.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
References
Summary
In this tutorial we learn how to install libmtp on Rocky Linux 8 using yum and dnf.