macOS
brew install libmtplocal Homebrew formula metadata
sudo port install libmtpMacPorts ports tree · multimedia/libmtp/Portfile · source: api.github.com
brew
Implementation of Microsoft's Media Transfer Protocol (MTP). Version 1.1.23 via Homebrew; verified from local package data.
install
brew install libmtplocal Homebrew formula metadata
sudo port install libmtpMacPorts ports tree · multimedia/libmtp/Portfile · source: api.github.com
sudo apk add libmtpAlpine Linux edge package indexes · libmtp · source: dl-cdn.alpinelinux.org
sudo apt install libmtp-commonDebian stable package indexes · libmtp-common · source: deb.debian.org
sudo dnf install libmtpFedora Rawhide package metadata · libmtp · source: dl.fedoraproject.org
nix profile install nixpkgs#libmtpnixpkgs package indexes · pkgs/by-name/li/libmtp/package.nix · source: api.github.com
sudo pacman -S libmtpArch Linux sync databases · libmtp · source: geo.mirror.pkgbuild.com
sudo zypper install libmtp-developenSUSE Tumbleweed package metadata · libmtp-devel · source: download.opensuse.org
overview
Implementation of Microsoft's Media Transfer Protocol (MTP)
history
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.
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.
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.
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.
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.
security posture
broad file, network, media, or database tool signal.
blue risk · medium confidence · tool
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mtp-albumart | cli | global executable | |
mtp-albums | cli | global executable | |
mtp-connect | cli | global executable | |
mtp-delfile | cli | global executable | |
mtp-detect | cli | global executable | |
mtp-emptyfolders | cli | global executable | |
mtp-files | cli | global executable | |
mtp-filetree | cli | global executable | |
mtp-folders | cli | global executable | |
mtp-format | cli | global executable | |
mtp-getfile | cli | global executable | |
mtp-getplaylist | cli | global executable | |
mtp-hotplug | cli | global executable | |
mtp-newfolder | cli | global executable | |
mtp-newplaylist | cli | global executable | |
mtp-playlists | cli | global executable | |
mtp-reset | cli | global executable | |
mtp-sendfile | cli | global executable | |
mtp-sendtr | cli | global executable | |
mtp-thumb | cli | global executable | |
mtp-tracks | cli | global executable | |
mtp-trexist | cli | global executable |
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.
https://libmtp.sourceforge.net/
install metadata
| Package key | brew:libmtp |
|---|---|
| Version | 1.1.23 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libmtp |
| Homepage | https://libmtp.sourceforge.net/ |
| Repository | https://sourceforge.net/p/libmtp/code/ci/master/tree |
| Upstream docs | https://libmtp.sourceforge.net/ |
| License | LGPL-2.1-or-later |
| Source archive | https://downloads.sourceforge.net/project/libmtp/libmtp/1.1.23/libmtp-1.1.23.tar.gz |
| Dependencies | libusb |
| Build dependencies | pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libmtp |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libmtp-common 1.1.22-1
Media Transfer Protocol (MTP) common files
https://libmtp.sourceforge.net/
sudo apt install libmtp-commonlibmtp-dev 1.1.22-1
Media Transfer Protocol (MTP) development files
https://libmtp.sourceforge.net/
sudo apt install libmtp-devlibmtp-doc 1.1.22-1
Media Transfer Protocol (MTP) library documentation
https://libmtp.sourceforge.net/
sudo apt install libmtp-doclibmtp-runtime 1.1.22-1
Media Transfer Protocol (MTP) runtime tools
https://libmtp.sourceforge.net/
sudo apt install libmtp-runtimelibmtp9t64 1.1.22-1
Media Transfer Protocol (MTP) library
https://libmtp.sourceforge.net/
sudo apt install libmtp9t64mtp-tools 1.1.22-1
Media Transfer Protocol (MTP) library tools
https://libmtp.sourceforge.net/
sudo apt install mtp-toolslibmtp
nix profile install nixpkgs#libmtplibmtp-common 1.1.21-3.1build1
Media Transfer Protocol (MTP) common files
https://libmtp.sourceforge.net/
sudo apt install libmtp-commonlibmtp-dev 1.1.21-3.1build1
Media Transfer Protocol (MTP) development files
https://libmtp.sourceforge.net/
sudo apt install libmtp-devlibmtp-doc 1.1.21-3.1build1
Media Transfer Protocol (MTP) library documentation
https://libmtp.sourceforge.net/
sudo apt install libmtp-doclibmtp-runtime 1.1.21-3.1build1
Media Transfer Protocol (MTP) runtime tools
https://libmtp.sourceforge.net/
sudo apt install libmtp-runtimelibmtp9t64 1.1.21-3.1build1
Media Transfer Protocol (MTP) library
https://libmtp.sourceforge.net/
sudo apt install libmtp9t64mtp-tools 1.1.21-3.1build1
Media Transfer Protocol (MTP) library tools
https://libmtp.sourceforge.net/
sudo apt install mtp-toolslibmtp 1.1.22-r1
Software library for MTP media players
https://libmtp.sourceforge.net/
sudo apk add libmtplibmtp-dev 1.1.22-r1
Software library for MTP media players (development files)
https://libmtp.sourceforge.net/
sudo apk add libmtp-devlibmtp-examples 1.1.22-r1
Example programs for libmtp
https://libmtp.sourceforge.net/
sudo apk add libmtp-examplessource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.