How To Install libmtp-devel on Rocky Linux 8
Introduction
In this tutorial we learn how to install libmtp-devel
on Rocky Linux 8.
What is libmtp-devel
This package provides development files for the libmtp library for MTP media players.
We can use yum
or dnf
to install libmtp-devel
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libmtp-devel.
Install libmtp-devel 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-devel
using dnf
by running the following command:
sudo dnf -y install libmtp-devel
Install libmtp-devel 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-devel
using yum
by running the following command:
sudo yum -y install libmtp-devel
How To Uninstall libmtp-devel on Rocky Linux 8
To uninstall only the libmtp-devel
package we can use the following command:
sudo dnf remove libmtp-devel
libmtp-devel Package Contents on Rocky Linux 8
/usr/include/libmtp.h
/usr/lib/libmtp.so
/usr/lib/pkgconfig/libmtp.pc
/usr/share/doc/libmtp
/usr/share/doc/libmtp/AUTHORS
/usr/share/doc/libmtp/ChangeLog
/usr/share/doc/libmtp/README
/usr/share/doc/libmtp/TODO
/usr/share/doc/libmtp/html
/usr/share/doc/libmtp/html/__stdint_8h_source.html
/usr/share/doc/libmtp/html/annotated.html
/usr/share/doc/libmtp/html/bc_s.png
/usr/share/doc/libmtp/html/bdwn.png
/usr/share/doc/libmtp/html/chdk__live__view_8h_source.html
/usr/share/doc/libmtp/html/chdk__ptp_8h_source.html
/usr/share/doc/libmtp/html/classes.html
/usr/share/doc/libmtp/html/closed.png
/usr/share/doc/libmtp/html/delfile_8c-example.html
/usr/share/doc/libmtp/html/detect_8c-example.html
/usr/share/doc/libmtp/html/device-flags_8h.html
/usr/share/doc/libmtp/html/device-flags_8h_source.html
/usr/share/doc/libmtp/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
/usr/share/doc/libmtp/html/doc.png
/usr/share/doc/libmtp/html/doxygen.css
/usr/share/doc/libmtp/html/doxygen.png
/usr/share/doc/libmtp/html/dynsections.js
/usr/share/doc/libmtp/html/examples.html
/usr/share/doc/libmtp/html/examples_8h_source.html
/usr/share/doc/libmtp/html/files.html
/usr/share/doc/libmtp/html/files_8c-example.html
/usr/share/doc/libmtp/html/folderclosed.png
/usr/share/doc/libmtp/html/folderopen.png
/usr/share/doc/libmtp/html/folders_8c-example.html
/usr/share/doc/libmtp/html/functions.html
/usr/share/doc/libmtp/html/functions_vars.html
/usr/share/doc/libmtp/html/getfile_8c-example.html
/usr/share/doc/libmtp/html/getplaylist_8c-example.html
/usr/share/doc/libmtp/html/globals.html
/usr/share/doc/libmtp/html/globals_d.html
/usr/share/doc/libmtp/html/globals_defs.html
/usr/share/doc/libmtp/html/globals_enum.html
/usr/share/doc/libmtp/html/globals_eval.html
/usr/share/doc/libmtp/html/globals_func.html
/usr/share/doc/libmtp/html/globals_func_d.html
/usr/share/doc/libmtp/html/globals_func_g.html
/usr/share/doc/libmtp/html/globals_func_l.html
/usr/share/doc/libmtp/html/globals_func_p.html
/usr/share/doc/libmtp/html/globals_func_s.html
/usr/share/doc/libmtp/html/globals_func_u.html
/usr/share/doc/libmtp/html/globals_g.html
/usr/share/doc/libmtp/html/globals_l.html
/usr/share/doc/libmtp/html/globals_m.html
/usr/share/doc/libmtp/html/globals_p.html
/usr/share/doc/libmtp/html/globals_s.html
/usr/share/doc/libmtp/html/globals_type.html
/usr/share/doc/libmtp/html/globals_u.html
/usr/share/doc/libmtp/html/globals_vars.html
/usr/share/doc/libmtp/html/group__albums.html
/usr/share/doc/libmtp/html/group__basic.html
/usr/share/doc/libmtp/html/group__custom.html
/usr/share/doc/libmtp/html/group__files.html
/usr/share/doc/libmtp/html/group__folders.html
/usr/share/doc/libmtp/html/group__internals.html
/usr/share/doc/libmtp/html/group__objects.html
/usr/share/doc/libmtp/html/group__playlists.html
/usr/share/doc/libmtp/html/group__structar.html
/usr/share/doc/libmtp/html/group__tracks.html
/usr/share/doc/libmtp/html/group__types.html
/usr/share/doc/libmtp/html/hotplug_8c-example.html
/usr/share/doc/libmtp/html/index.html
/usr/share/doc/libmtp/html/jquery.js
/usr/share/doc/libmtp/html/libmtp_8c.html
/usr/share/doc/libmtp/html/libmtp_8h.html
/usr/share/doc/libmtp/html/libmtp_8h_source.html
/usr/share/doc/libmtp/html/libusb-glue_8h.html
/usr/share/doc/libmtp/html/libusb-glue_8h_source.html
/usr/share/doc/libmtp/html/mainpage_8h_source.html
/usr/share/doc/libmtp/html/menu.js
/usr/share/doc/libmtp/html/menudata.js
/usr/share/doc/libmtp/html/modules.html
/usr/share/doc/libmtp/html/mtpz_8c.html
/usr/share/doc/libmtp/html/mtpz_8h.html
/usr/share/doc/libmtp/html/mtpz_8h_source.html
/usr/share/doc/libmtp/html/music-players_8h.html
/usr/share/doc/libmtp/html/music-players_8h_source.html
/usr/share/doc/libmtp/html/nav_f.png
/usr/share/doc/libmtp/html/nav_g.png
/usr/share/doc/libmtp/html/nav_h.png
/usr/share/doc/libmtp/html/newfolder_8c-example.html
/usr/share/doc/libmtp/html/open.png
/usr/share/doc/libmtp/html/playlist-spl_8h_source.html
/usr/share/doc/libmtp/html/playlists_8c-example.html
/usr/share/doc/libmtp/html/ptp_8h_source.html
/usr/share/doc/libmtp/html/refactortest_8c-example.html
/usr/share/doc/libmtp/html/sendfile_8c-example.html
/usr/share/doc/libmtp/html/sendtr_8c-example.html
/usr/share/doc/libmtp/html/splitbar.png
/usr/share/doc/libmtp/html/structLIBMTP__album__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__allowed__values__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__device__entry__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__device__extension__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__devicestorage__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__error__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__file__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__filesampledata__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__folder__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__mtpdevice__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__playlist__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__raw__device__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__track__struct.html
/usr/share/doc/libmtp/html/structPTPFDHandlerPrivate.html
/usr/share/doc/libmtp/html/structPTPMemHandlerPrivate.html
/usr/share/doc/libmtp/html/struct__MTPDataHandler.html
/usr/share/doc/libmtp/html/struct__MTPProperties.html
/usr/share/doc/libmtp/html/struct__PTPCANONFolderEntry.html
/usr/share/doc/libmtp/html/struct__PTPCanonEOSDeviceInfo.html
/usr/share/doc/libmtp/html/struct__PTPCanon__New__Object.html
/usr/share/doc/libmtp/html/struct__PTPCanon__Property.html
/usr/share/doc/libmtp/html/struct__PTPCanon__changes__entry.html
/usr/share/doc/libmtp/html/struct__PTPCanon__directtransfer__entry.html
/usr/share/doc/libmtp/html/struct__PTPContainer.html
/usr/share/doc/libmtp/html/struct__PTPDataHandler.html
/usr/share/doc/libmtp/html/struct__PTPDeviceInfo.html
/usr/share/doc/libmtp/html/struct__PTPDevicePropDesc.html
/usr/share/doc/libmtp/html/struct__PTPDeviceProperty.html
/usr/share/doc/libmtp/html/struct__PTPEKTextParams.html
/usr/share/doc/libmtp/html/struct__PTPIPHeader.html
/usr/share/doc/libmtp/html/struct__PTPNIKONCoordinatePair.html
/usr/share/doc/libmtp/html/struct__PTPNIKONCurveData.html
/usr/share/doc/libmtp/html/struct__PTPNIKONWifiProfile.html
/usr/share/doc/libmtp/html/struct__PTPNTCCoordinatePair.html
/usr/share/doc/libmtp/html/struct__PTPObject.html
/usr/share/doc/libmtp/html/struct__PTPObjectHandles.html
/usr/share/doc/libmtp/html/struct__PTPObjectInfo.html
/usr/share/doc/libmtp/html/struct__PTPObjectPropDesc.html
/usr/share/doc/libmtp/html/struct__PTPParams.html
/usr/share/doc/libmtp/html/struct__PTPPropDescEnumForm.html
/usr/share/doc/libmtp/html/struct__PTPPropDescRangeForm.html
/usr/share/doc/libmtp/html/struct__PTPPropertyValue_1_1array.html
/usr/share/doc/libmtp/html/struct__PTPStorageIDs.html
/usr/share/doc/libmtp/html/struct__PTPStorageInfo.html
/usr/share/doc/libmtp/html/struct__PTPUSBBulkContainer.html
/usr/share/doc/libmtp/html/struct__PTPUSBEventContainer.html
/usr/share/doc/libmtp/html/struct__PTP__USB.html
/usr/share/doc/libmtp/html/structevent__cb__data__struct.html
/usr/share/doc/libmtp/html/structfilemap__struct.html
/usr/share/doc/libmtp/html/structlv__data__header.html
/usr/share/doc/libmtp/html/structlv__framebuffer__desc.html
/usr/share/doc/libmtp/html/structmtpdevice__list__struct.html
/usr/share/doc/libmtp/html/structmtpz__rsa__struct.html
/usr/share/doc/libmtp/html/structpropertymap__struct.html
/usr/share/doc/libmtp/html/structptp__chdk__rc__chunk.html
/usr/share/doc/libmtp/html/structptp__chdk__script__msg.html
/usr/share/doc/libmtp/html/structptp__event__cb__data.html
/usr/share/doc/libmtp/html/structptp__opcode__trans__t.html
/usr/share/doc/libmtp/html/structtagptp__chdk__videosettings.html
/usr/share/doc/libmtp/html/structtext__struct.html
/usr/share/doc/libmtp/html/sync_off.png
/usr/share/doc/libmtp/html/sync_on.png
/usr/share/doc/libmtp/html/tab_a.png
/usr/share/doc/libmtp/html/tab_b.png
/usr/share/doc/libmtp/html/tab_h.png
/usr/share/doc/libmtp/html/tab_s.png
/usr/share/doc/libmtp/html/tabs.css
/usr/share/doc/libmtp/html/tracks_8c-example.html
/usr/share/doc/libmtp/html/trexist_8c-example.html
/usr/share/doc/libmtp/html/unicode_8c.html
/usr/share/doc/libmtp/html/unicode_8h.html
/usr/share/doc/libmtp/html/unicode_8h_source.html
/usr/share/doc/libmtp/html/union__PTPPropertyValue.html
/usr/share/doc/libmtp/html/util_8c.html
/usr/share/doc/libmtp/html/util_8h_source.html
/usr/include/libmtp.h
/usr/lib64/libmtp.so
/usr/lib64/pkgconfig/libmtp.pc
/usr/share/doc/libmtp
/usr/share/doc/libmtp/AUTHORS
/usr/share/doc/libmtp/ChangeLog
/usr/share/doc/libmtp/README
/usr/share/doc/libmtp/TODO
/usr/share/doc/libmtp/html
/usr/share/doc/libmtp/html/__stdint_8h_source.html
/usr/share/doc/libmtp/html/annotated.html
/usr/share/doc/libmtp/html/bc_s.png
/usr/share/doc/libmtp/html/bdwn.png
/usr/share/doc/libmtp/html/chdk__live__view_8h_source.html
/usr/share/doc/libmtp/html/chdk__ptp_8h_source.html
/usr/share/doc/libmtp/html/classes.html
/usr/share/doc/libmtp/html/closed.png
/usr/share/doc/libmtp/html/delfile_8c-example.html
/usr/share/doc/libmtp/html/detect_8c-example.html
/usr/share/doc/libmtp/html/device-flags_8h.html
/usr/share/doc/libmtp/html/device-flags_8h_source.html
/usr/share/doc/libmtp/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html
/usr/share/doc/libmtp/html/doc.png
/usr/share/doc/libmtp/html/doxygen.css
/usr/share/doc/libmtp/html/doxygen.png
/usr/share/doc/libmtp/html/dynsections.js
/usr/share/doc/libmtp/html/examples.html
/usr/share/doc/libmtp/html/examples_8h_source.html
/usr/share/doc/libmtp/html/files.html
/usr/share/doc/libmtp/html/files_8c-example.html
/usr/share/doc/libmtp/html/folderclosed.png
/usr/share/doc/libmtp/html/folderopen.png
/usr/share/doc/libmtp/html/folders_8c-example.html
/usr/share/doc/libmtp/html/functions.html
/usr/share/doc/libmtp/html/functions_vars.html
/usr/share/doc/libmtp/html/getfile_8c-example.html
/usr/share/doc/libmtp/html/getplaylist_8c-example.html
/usr/share/doc/libmtp/html/globals.html
/usr/share/doc/libmtp/html/globals_d.html
/usr/share/doc/libmtp/html/globals_defs.html
/usr/share/doc/libmtp/html/globals_enum.html
/usr/share/doc/libmtp/html/globals_eval.html
/usr/share/doc/libmtp/html/globals_func.html
/usr/share/doc/libmtp/html/globals_func_d.html
/usr/share/doc/libmtp/html/globals_func_g.html
/usr/share/doc/libmtp/html/globals_func_l.html
/usr/share/doc/libmtp/html/globals_func_p.html
/usr/share/doc/libmtp/html/globals_func_s.html
/usr/share/doc/libmtp/html/globals_func_u.html
/usr/share/doc/libmtp/html/globals_g.html
/usr/share/doc/libmtp/html/globals_l.html
/usr/share/doc/libmtp/html/globals_m.html
/usr/share/doc/libmtp/html/globals_p.html
/usr/share/doc/libmtp/html/globals_s.html
/usr/share/doc/libmtp/html/globals_type.html
/usr/share/doc/libmtp/html/globals_u.html
/usr/share/doc/libmtp/html/globals_vars.html
/usr/share/doc/libmtp/html/group__albums.html
/usr/share/doc/libmtp/html/group__basic.html
/usr/share/doc/libmtp/html/group__custom.html
/usr/share/doc/libmtp/html/group__files.html
/usr/share/doc/libmtp/html/group__folders.html
/usr/share/doc/libmtp/html/group__internals.html
/usr/share/doc/libmtp/html/group__objects.html
/usr/share/doc/libmtp/html/group__playlists.html
/usr/share/doc/libmtp/html/group__structar.html
/usr/share/doc/libmtp/html/group__tracks.html
/usr/share/doc/libmtp/html/group__types.html
/usr/share/doc/libmtp/html/hotplug_8c-example.html
/usr/share/doc/libmtp/html/index.html
/usr/share/doc/libmtp/html/jquery.js
/usr/share/doc/libmtp/html/libmtp_8c.html
/usr/share/doc/libmtp/html/libmtp_8h.html
/usr/share/doc/libmtp/html/libmtp_8h_source.html
/usr/share/doc/libmtp/html/libusb-glue_8h.html
/usr/share/doc/libmtp/html/libusb-glue_8h_source.html
/usr/share/doc/libmtp/html/mainpage_8h_source.html
/usr/share/doc/libmtp/html/menu.js
/usr/share/doc/libmtp/html/menudata.js
/usr/share/doc/libmtp/html/modules.html
/usr/share/doc/libmtp/html/mtpz_8c.html
/usr/share/doc/libmtp/html/mtpz_8h.html
/usr/share/doc/libmtp/html/mtpz_8h_source.html
/usr/share/doc/libmtp/html/music-players_8h.html
/usr/share/doc/libmtp/html/music-players_8h_source.html
/usr/share/doc/libmtp/html/nav_f.png
/usr/share/doc/libmtp/html/nav_g.png
/usr/share/doc/libmtp/html/nav_h.png
/usr/share/doc/libmtp/html/newfolder_8c-example.html
/usr/share/doc/libmtp/html/open.png
/usr/share/doc/libmtp/html/playlist-spl_8h_source.html
/usr/share/doc/libmtp/html/playlists_8c-example.html
/usr/share/doc/libmtp/html/ptp_8h_source.html
/usr/share/doc/libmtp/html/refactortest_8c-example.html
/usr/share/doc/libmtp/html/sendfile_8c-example.html
/usr/share/doc/libmtp/html/sendtr_8c-example.html
/usr/share/doc/libmtp/html/splitbar.png
/usr/share/doc/libmtp/html/structLIBMTP__album__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__allowed__values__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__device__entry__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__device__extension__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__devicestorage__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__error__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__file__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__filesampledata__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__folder__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__mtpdevice__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__playlist__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__raw__device__struct.html
/usr/share/doc/libmtp/html/structLIBMTP__track__struct.html
/usr/share/doc/libmtp/html/structPTPFDHandlerPrivate.html
/usr/share/doc/libmtp/html/structPTPMemHandlerPrivate.html
/usr/share/doc/libmtp/html/struct__MTPDataHandler.html
/usr/share/doc/libmtp/html/struct__MTPProperties.html
/usr/share/doc/libmtp/html/struct__PTPCANONFolderEntry.html
/usr/share/doc/libmtp/html/struct__PTPCanonEOSDeviceInfo.html
/usr/share/doc/libmtp/html/struct__PTPCanon__New__Object.html
/usr/share/doc/libmtp/html/struct__PTPCanon__Property.html
/usr/share/doc/libmtp/html/struct__PTPCanon__changes__entry.html
/usr/share/doc/libmtp/html/struct__PTPCanon__directtransfer__entry.html
/usr/share/doc/libmtp/html/struct__PTPContainer.html
/usr/share/doc/libmtp/html/struct__PTPDataHandler.html
/usr/share/doc/libmtp/html/struct__PTPDeviceInfo.html
/usr/share/doc/libmtp/html/struct__PTPDevicePropDesc.html
/usr/share/doc/libmtp/html/struct__PTPDeviceProperty.html
/usr/share/doc/libmtp/html/struct__PTPEKTextParams.html
/usr/share/doc/libmtp/html/struct__PTPIPHeader.html
/usr/share/doc/libmtp/html/struct__PTPNIKONCoordinatePair.html
/usr/share/doc/libmtp/html/struct__PTPNIKONCurveData.html
/usr/share/doc/libmtp/html/struct__PTPNIKONWifiProfile.html
/usr/share/doc/libmtp/html/struct__PTPNTCCoordinatePair.html
/usr/share/doc/libmtp/html/struct__PTPObject.html
/usr/share/doc/libmtp/html/struct__PTPObjectHandles.html
/usr/share/doc/libmtp/html/struct__PTPObjectInfo.html
/usr/share/doc/libmtp/html/struct__PTPObjectPropDesc.html
/usr/share/doc/libmtp/html/struct__PTPParams.html
/usr/share/doc/libmtp/html/struct__PTPPropDescEnumForm.html
/usr/share/doc/libmtp/html/struct__PTPPropDescRangeForm.html
/usr/share/doc/libmtp/html/struct__PTPPropertyValue_1_1array.html
/usr/share/doc/libmtp/html/struct__PTPStorageIDs.html
/usr/share/doc/libmtp/html/struct__PTPStorageInfo.html
/usr/share/doc/libmtp/html/struct__PTPUSBBulkContainer.html
/usr/share/doc/libmtp/html/struct__PTPUSBEventContainer.html
/usr/share/doc/libmtp/html/struct__PTP__USB.html
/usr/share/doc/libmtp/html/structevent__cb__data__struct.html
/usr/share/doc/libmtp/html/structfilemap__struct.html
/usr/share/doc/libmtp/html/structlv__data__header.html
/usr/share/doc/libmtp/html/structlv__framebuffer__desc.html
/usr/share/doc/libmtp/html/structmtpdevice__list__struct.html
/usr/share/doc/libmtp/html/structmtpz__rsa__struct.html
/usr/share/doc/libmtp/html/structpropertymap__struct.html
/usr/share/doc/libmtp/html/structptp__chdk__rc__chunk.html
/usr/share/doc/libmtp/html/structptp__chdk__script__msg.html
/usr/share/doc/libmtp/html/structptp__event__cb__data.html
/usr/share/doc/libmtp/html/structptp__opcode__trans__t.html
/usr/share/doc/libmtp/html/structtagptp__chdk__videosettings.html
/usr/share/doc/libmtp/html/structtext__struct.html
/usr/share/doc/libmtp/html/sync_off.png
/usr/share/doc/libmtp/html/sync_on.png
/usr/share/doc/libmtp/html/tab_a.png
/usr/share/doc/libmtp/html/tab_b.png
/usr/share/doc/libmtp/html/tab_h.png
/usr/share/doc/libmtp/html/tab_s.png
/usr/share/doc/libmtp/html/tabs.css
/usr/share/doc/libmtp/html/tracks_8c-example.html
/usr/share/doc/libmtp/html/trexist_8c-example.html
/usr/share/doc/libmtp/html/unicode_8c.html
/usr/share/doc/libmtp/html/unicode_8h.html
/usr/share/doc/libmtp/html/unicode_8h_source.html
/usr/share/doc/libmtp/html/union__PTPPropertyValue.html
/usr/share/doc/libmtp/html/util_8c.html
/usr/share/doc/libmtp/html/util_8h_source.html
References
Summary
In this tutorial we learn how to install libmtp-devel
on Rocky Linux 8 using yum and dnf.