# libmtp mit Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für libmtp in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:libmtp
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install libmtp
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libmtp
```

  Evidenz: MacPorts ports tree: multimedia/libmtp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libmtp
```

  Evidenz: Alpine Linux edge package indexes: libmtp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libmtp
```

  Evidenz: Fedora Rawhide package metadata: libmtp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libmtp
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/li/libmtp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libmtp
```

  Evidenz: Arch Linux sync databases: libmtp from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libmtp-common
```

  Evidenz: Debian stable package indexes: libmtp-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libmtp-devel
```

  Evidenz: openSUSE Tumbleweed package metadata: libmtp-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:libmtp
- **Paketmanager:** Homebrew
- **Version:** 1.1.23
- **Quellzusammenfassung:** Implementation of Microsoft's Media Transfer Protocol (MTP)
- **Homepage:** <https://libmtp.sourceforge.net/>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

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

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.1.23
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

- 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.

### Quellen

- <https://formulae.brew.sh/formula/libmtp>
- <https://github.com/libmtp/libmtp>
- <https://github.com/libmtp/libmtp/blob/master/src/libmtp.h.in>
- <https://libmtp.sourceforge.net/>
- <https://sourceforge.net/p/libmtp/code/ci/HEAD/tree/README>


## Sicherheitshinweise

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

- **Geiger-Risiko:** blue / mittel
- broad file, network, media, or database tool signal

## Andere Paketmanager-Einträge

- Debian apt - libmtp-common - 1.1.22-1: normalized package name match | Debian stable package indexes: libmtp-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Media Transfer Protocol (MTP) common files | https://libmtp.sourceforge.net/
- Debian apt - libmtp-dev - 1.1.22-1: normalized package name match | Debian stable package indexes: libmtp-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Media Transfer Protocol (MTP) development files | https://libmtp.sourceforge.net/
- Debian apt - libmtp-doc - 1.1.22-1: normalized package name match | Debian stable package indexes: libmtp-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Media Transfer Protocol (MTP) library documentation | https://libmtp.sourceforge.net/
- Debian apt - libmtp-runtime - 1.1.22-1: normalized package name match | Debian stable package indexes: libmtp-runtime from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Media Transfer Protocol (MTP) runtime tools | https://libmtp.sourceforge.net/
- Debian apt - libmtp9t64 - 1.1.22-1: normalized package name match | Debian stable package indexes: libmtp9t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Media Transfer Protocol (MTP) library | https://libmtp.sourceforge.net/
- Debian apt - mtp-tools - 1.1.22-1: normalized package name match | Debian stable package indexes: mtp-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Media Transfer Protocol (MTP) library tools | https://libmtp.sourceforge.net/
- Nix - libmtp: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libmtp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libmtp-common - 1.1.21-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtp-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Media Transfer Protocol (MTP) common files | https://libmtp.sourceforge.net/
- Ubuntu apt - libmtp-dev - 1.1.21-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtp-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Media Transfer Protocol (MTP) development files | https://libmtp.sourceforge.net/
- Ubuntu apt - libmtp-doc - 1.1.21-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtp-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Media Transfer Protocol (MTP) library documentation | https://libmtp.sourceforge.net/
- Ubuntu apt - libmtp-runtime - 1.1.21-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtp-runtime from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Media Transfer Protocol (MTP) runtime tools | https://libmtp.sourceforge.net/
- Ubuntu apt - libmtp9t64 - 1.1.21-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libmtp9t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Media Transfer Protocol (MTP) library | https://libmtp.sourceforge.net/
- Ubuntu apt - mtp-tools - 1.1.21-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: mtp-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Media Transfer Protocol (MTP) library tools | https://libmtp.sourceforge.net/
- apk - libmtp - 1.1.22-r1: normalized package name match | Alpine Linux edge package indexes: libmtp from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Software library for MTP media players | https://libmtp.sourceforge.net/
- apk - libmtp-dev - 1.1.22-r1: normalized package name match | Alpine Linux edge package indexes: libmtp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Software library for MTP media players (development files) | https://libmtp.sourceforge.net/
- apk - libmtp-examples - 1.1.22-r1: normalized package name match | Alpine Linux edge package indexes: libmtp-examples from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Example programs for libmtp | https://libmtp.sourceforge.net/


## Combined YAML source

View the package source record on GitHub. [combined/libmtp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libmtp.yml)


## Quellen

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