How To Install libmtp.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libmtp.x86_64 in Amazon Linux 2. libmtp.x86_64 is A software library for MTP media players

Introduction

In this tutorial we learn how to install libmtp.x86_64 on Amazon Linux 2.

What is libmtp.x86_64

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 to install libmtp.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libmtp.x86_64.

Install libmtp.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libmtp.x86_64 using yum by running the following command:

sudo yum -y install libmtp.x86_64

How To Uninstall libmtp.x86_64 on Amazon Linux 2

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

sudo yum remove libmtp.x86_64

libmtp.x86_64 Package Contents on Amazon Linux 2

/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

References

Summary

In this tutorial we learn how to install libmtp.x86_64 on Amazon Linux 2 using yum.