pkg.soopen package index

brew / rank 3006

Install libmtp with Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

Implementation of Microsoft's Media Transfer Protocol (MTP). Version 1.1.23 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libmtp-common.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libmtp

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libmtp

MacPorts ports tree · multimedia/libmtp/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libmtp

Alpine Linux edge package indexes · libmtp · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install libmtp

Fedora Rawhide package metadata · libmtp · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libmtp

nixpkgs package indexes · pkgs/by-name/li/libmtp/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S libmtp

Arch Linux sync databases · libmtp · source: geo.mirror.pkgbuild.com

Debian aptverified · 92%
sudo apt install libmtp-common

Debian stable package indexes · libmtp-common · source: deb.debian.org

openSUSE zypperverified · 92%
sudo zypper install libmtp-devel

openSUSE Tumbleweed package metadata · libmtp-devel · source: download.opensuse.org

overview

Package summary

Implementation of Microsoft's Media Transfer Protocol (MTP)

Commands and aliases

  • mtp-albumart
  • mtp-albums
  • mtp-connect
  • mtp-delfile
  • mtp-detect
  • mtp-emptyfolders
  • mtp-files
  • mtp-filetree
  • mtp-folders
  • mtp-format
  • mtp-getfile
  • mtp-getplaylist
  • mtp-hotplug
  • mtp-newfolder
  • mtp-newplaylist
  • mtp-playlists
  • mtp-reset
  • mtp-sendfile
  • mtp-sendtr
  • mtp-thumb
  • mtp-tracks
  • mtp-trexist

history

Project history and usage

libmtp is a POSIX-oriented C implementation of the Media Transfer Protocol initiator side: host software talks to MTP responders such as media players, phones, and other portable devices.

Project history

The project grew around the practical problem that MTP devices are not normal mounted filesystems. The upstream homepage describes libmtp as an initiator implementation of MTP Basic, and the README explains the difference between a host-side initiator and a device-side responder.

Copyright notices in the public headers and examples show active authorship beginning in 2005, including Linus Walleij and other contributors. Over time the project accumulated a large device database, examples, command-line tools, and downstream integrations for desktop environments and media applications.

Adoption history

The libmtp homepage explicitly lists downstreams and related clients such as GVFS MTP support for GNOME, KIO-MTP for KDE, go-mtpfs, XNJB, Gnomad2, Amarok, and Rhythmbox. That downstream list captures why the library became the common Unix packaging point for MTP access.

Package managers ship both the shared library and many small mtp-* utilities, letting users inspect devices, transfer files, manage playlists, and debug unknown vendor/product IDs without writing code.

How it is used

Typical usage is through desktop file managers, media players, FUSE clients, or the bundled commands such as mtp-detect, mtp-files, mtp-getfile, and mtp-sendfile. The upstream site asks users with unrecognized devices to submit USB IDs and mtp-detect output, reflecting the device-quirk maintenance model.

Why package nerds care

libmtp matters to packagers because it turns a messy device protocol and vendor-ID database into one shared dependency. It is also a classic example of a library whose command-line tools are as important for debugging support tickets as the library ABI is for applications.

Timeline

  • 2005: Public source copyright notices begin for libmtp authorship and examples.
  • 2007: Additional contributors and device support appear in public source copyright notices.
  • 2008: Several libmtp source files record continued authorship and device-support work.
  • 2010s: GNOME, KDE, FUSE, and media-player clients use libmtp or related MTP access paths.
  • 2020s: The project maintains SourceForge and GitHub source surfaces plus release packaging across Unix distributions.

Related projects

  • libmtp is related to libgphoto2's PTP/MTP handling, but the README explains that libmtp stays closer to the MTP object model rather than presenting everything as files. Desktop integrations include GVFS and KIO-MTP, while go-mtpfs and XNJB are standalone client examples.

security posture

Risk level: blue

broad file, network, media, or database tool signal.

Risk classifier

blue risk · medium confidence · tool

Why

  • broad file, network, media, or database tool signal

Signals

  • text:media

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
mtp-albumartexecutableindexed executableDiscovered from the local executable index.
mtp-albumsexecutableindexed executableDiscovered from the local executable index.
mtp-connectexecutableindexed executableDiscovered from the local executable index.
mtp-delfileexecutableindexed executableDiscovered from the local executable index.
mtp-detectexecutableindexed executableDiscovered from the local executable index.
mtp-emptyfoldersexecutableindexed executableDiscovered from the local executable index.
mtp-filesexecutableindexed executableDiscovered from the local executable index.
mtp-filetreeexecutableindexed executableDiscovered from the local executable index.
mtp-foldersexecutableindexed executableDiscovered from the local executable index.
mtp-formatexecutableindexed executableDiscovered from the local executable index.
mtp-getfileexecutableindexed executableDiscovered from the local executable index.
mtp-getplaylistexecutableindexed executableDiscovered from the local executable index.
mtp-hotplugexecutableindexed executableDiscovered from the local executable index.
mtp-newfolderexecutableindexed executableDiscovered from the local executable index.
mtp-newplaylistexecutableindexed executableDiscovered from the local executable index.
mtp-playlistsexecutableindexed executableDiscovered from the local executable index.
mtp-resetexecutableindexed executableDiscovered from the local executable index.
mtp-sendfileexecutableindexed executableDiscovered from the local executable index.
mtp-sendtrexecutableindexed executableDiscovered from the local executable index.
mtp-thumbexecutableindexed executableDiscovered from the local executable index.
mtp-tracksexecutableindexed executableDiscovered from the local executable index.
mtp-trexistexecutableindexed executableDiscovered from the local executable index.

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-08-03
manager version1.1.23
manager updated
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:libmtp
Version1.1.23
Package managerHomebrew
Homepagehttps://libmtp.sourceforge.net/
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libmtp-common 1.1.22-1

Media Transfer Protocol (MTP) common files

https://libmtp.sourceforge.net/

sudo apt install libmtp-common
  • Section: libs
  • Architecture: all
  • Source Package: libmtp
  • normalized package name match
  • Matched by: Libmtp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmtp-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmtp-dev 1.1.22-1

Media Transfer Protocol (MTP) development files

https://libmtp.sourceforge.net/

sudo apt install libmtp-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libmtp
  • 2 dependencies
  • normalized package name match
  • Matched by: Libmtp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmtp-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmtp-doc 1.1.22-1

Media Transfer Protocol (MTP) library documentation

https://libmtp.sourceforge.net/

sudo apt install libmtp-doc
  • Section: doc
  • Architecture: all
  • Source Package: libmtp
  • normalized package name match
  • Matched by: Libmtp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmtp-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmtp-runtime 1.1.22-1

Media Transfer Protocol (MTP) runtime tools

https://libmtp.sourceforge.net/

sudo apt install libmtp-runtime
  • Section: libs
  • Architecture: amd64
  • Source Package: libmtp
  • 3 dependencies
  • normalized package name match
  • Matched by: Libmtp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmtp-runtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libmtp9t64 1.1.22-1

Media Transfer Protocol (MTP) library

https://libmtp.sourceforge.net/

sudo apt install libmtp9t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libmtp
  • 4 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Libmtp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libmtp9t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

mtp-tools 1.1.22-1

Media Transfer Protocol (MTP) library tools

https://libmtp.sourceforge.net/

sudo apt install mtp-tools
  • Section: utils
  • Architecture: amd64
  • Source Package: libmtp
  • 2 dependencies
  • normalized package name match
  • Matched by: Libmtp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: mtp-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libmtp

nix profile install nixpkgs#libmtp
  • normalized package name match
  • Matched by: Libmtp
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libmtp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libmtp-common 1.1.21-3.1build1

Media Transfer Protocol (MTP) common files

https://libmtp.sourceforge.net/

sudo apt install libmtp-common
  • Section: libs
  • Architecture: all
  • Source Package: libmtp
  • normalized package name match
  • Matched by: Libmtp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmtp-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libmtp-dev 1.1.21-3.1build1

Media Transfer Protocol (MTP) development files

https://libmtp.sourceforge.net/

sudo apt install libmtp-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libmtp
  • 2 dependencies
  • normalized package name match
  • Matched by: Libmtp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmtp-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libmtp-doc 1.1.21-3.1build1

Media Transfer Protocol (MTP) library documentation

https://libmtp.sourceforge.net/

sudo apt install libmtp-doc
  • Section: doc
  • Architecture: all
  • Source Package: libmtp
  • normalized package name match
  • Matched by: Libmtp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmtp-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libmtp-runtime 1.1.21-3.1build1

Media Transfer Protocol (MTP) runtime tools

https://libmtp.sourceforge.net/

sudo apt install libmtp-runtime
  • Section: libs
  • Architecture: amd64
  • Source Package: libmtp
  • 3 dependencies
  • normalized package name match
  • Matched by: Libmtp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmtp-runtime from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libmtp9t64 1.1.21-3.1build1

Media Transfer Protocol (MTP) library

https://libmtp.sourceforge.net/

sudo apt install libmtp9t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libmtp
  • 4 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Libmtp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libmtp9t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

mtp-tools 1.1.21-3.1build1

Media Transfer Protocol (MTP) library tools

https://libmtp.sourceforge.net/

sudo apt install mtp-tools
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: libmtp
  • 2 dependencies
  • normalized package name match
  • Matched by: Libmtp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: mtp-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

libmtp 1.1.22-r1

Software library for MTP media players

https://libmtp.sourceforge.net/

sudo apk add libmtp
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: libmtp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libmtp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libmtp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libmtp-dev 1.1.22-r1

Software library for MTP media players (development files)

https://libmtp.sourceforge.net/

sudo apk add libmtp-dev
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: libmtp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libmtp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libmtp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libmtp-examples 1.1.22-r1

Example programs for libmtp

https://libmtp.sourceforge.net/

sudo apk add libmtp-examples
  • License: LGPL-2.0-or-later
  • Architecture: x86_64
  • Source Package: libmtp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libmtp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libmtp-examples from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation