pkg.soopen package index

brew / 排名 3002

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libmtp

查看 libmtp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libmtp

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install libmtp

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add libmtp

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

Fedora dnf已验证 · 92%
sudo dnf install libmtp

Fedora Rawhide package metadata · libmtp · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#libmtp

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

Arch Linux pacman已验证 · 92%
sudo pacman -S libmtp

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

Debian apt已验证 · 92%
sudo apt install libmtp-common

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

openSUSE zypper已验证 · 92%
sudo zypper install libmtp-devel

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

概览

软件包摘要

Implementation of Microsoft's Media Transfer Protocol (MTP)

命令和别名

  • 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

历史

项目历史与用法

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.

时间线

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

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:media

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
mtp-albumartcli全局可执行文件
mtp-albumscli全局可执行文件
mtp-connectcli全局可执行文件
mtp-delfilecli全局可执行文件
mtp-detectcli全局可执行文件
mtp-emptyfolderscli全局可执行文件
mtp-filescli全局可执行文件
mtp-filetreecli全局可执行文件
mtp-folderscli全局可执行文件
mtp-formatcli全局可执行文件
mtp-getfilecli全局可执行文件
mtp-getplaylistcli全局可执行文件
mtp-hotplugcli全局可执行文件
mtp-newfoldercli全局可执行文件
mtp-newplaylistcli全局可执行文件
mtp-playlistscli全局可执行文件
mtp-resetcli全局可执行文件
mtp-sendfilecli全局可执行文件
mtp-sendtrcli全局可执行文件
mtp-thumbcli全局可执行文件
mtp-trackscli全局可执行文件
mtp-trexistcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-04
管理器版本1.1.23
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://libmtp.sourceforge.net/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://libmtp.sourceforge.net/none 置信度

安装元数据

软件包元数据

软件包键brew:libmtp
版本1.1.23
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/libmtp
主页https://libmtp.sourceforge.net/
上游文档https://libmtp.sourceforge.net/
许可证LGPL-2.1-or-later
源码归档https://downloads.sourceforge.net/project/libmtp/libmtp/1.1.23/libmtp-1.1.23.tar.gz
依赖libusb
构建依赖pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibmtp
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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