macOS
brew install libgphoto2local Homebrew formula metadata
sudo port install libgphoto2MacPorts ports tree · devel/libgphoto2/Portfile · 来源: api.github.com
安装
brew install libgphoto2local Homebrew formula metadata
sudo port install libgphoto2MacPorts ports tree · devel/libgphoto2/Portfile · 来源: api.github.com
sudo apk add libgphoto2Alpine Linux edge package indexes · libgphoto2 · 来源: dl-cdn.alpinelinux.org
sudo dnf install libgphoto2Fedora Rawhide package metadata · libgphoto2 · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libgphoto2nixpkgs package indexes · pkgs/by-name/li/libgphoto2/package.nix · 来源: api.github.com
sudo pacman -S libgphoto2Arch Linux sync databases · libgphoto2 · 来源: geo.mirror.pkgbuild.com
sudo apt install libgphoto2-6t64Debian stable package indexes · libgphoto2-6t64 · 来源: deb.debian.org
sudo zypper install libgphoto2-6openSUSE Tumbleweed package metadata · libgphoto2-6 · 来源: download.opensuse.org
概览
Gphoto2 digital camera library
历史
libgphoto2 is the library core of the gPhoto project, giving Unix-like systems a common way to talk to digital cameras, media players, and camera protocols such as PTP and MTP. It is the backend that lets command-line tools, desktop applications, and tethering workflows use camera hardware without each application carrying its own camera-driver stack.
The gPhoto project framed its mission around free software access to digital cameras whose vendors often published only proprietary Windows or Mac tools. The libgphoto2 project page describes the library as the core that abstracts communication ports and camera protocols, with modular port drivers and camlibs.
The libgphoto2 README calls it the successor of the original gphoto program, with additional camera drivers and a backend-library design rather than a standalone GUI. That split let gphoto2, gtkam, desktop photo tools, and other frontends share the same camera-access layer.
gPhoto reports support for more than 2700 cameras and media players on its project home page, while the generated support table dated 2026-05-30 lists 3013 supported cameras and media players for libgphoto2 2.5.34. The project also notes that PTP, MTP, and PictBridge devices can work generically without needing a specific model entry.
The README lists frontends and consumers including gphoto2, digiKam, gThumb, Shotwell, Darktable, Entangle, GIMP integration, gphotofs, and gtkam. That mix made libgphoto2 a common Linux photography dependency for import, tethering, capture, and camera metadata workflows.
Applications use libgphoto2 to detect cameras, download images, upload to picture frames, query configuration, trigger capture, and perform remote control where the camera and protocol allow it. The companion gphoto2 CLI exposes much of that power for scripts.
The library deliberately does not replace USB mass-storage handling; the project tells users to let the operating system mount mass-storage cameras. libgphoto2 is most valuable for protocol cameras and vendor-specific behavior that a normal filesystem mount cannot expose.
libgphoto2 is hardware-shaped packaging: the package is not just code, it carries camlibs, USB/PTP/MTP knowledge, udev-era history, translations, and a continually refreshed device table. A simple version bump can mean new camera IDs, changed remote-control behavior, or security fixes for parsing data from untrusted USB devices.
For package managers, it sits at the intersection of media apps, desktop environments, USB libraries, and scripting tools. It is also a reminder that old cameras and odd vendor protocols remain part of the compatibility surface long after the original hardware stopped being fashionable.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
gphoto2-config | cli | 全局可执行文件 | |
gphoto2-port-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
http://www.gphoto.org/proj/libgphoto2/
安装元数据
| 软件包键 | brew:libgphoto2 |
|---|---|
| 版本 | 2.5.34 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libgphoto2 |
| 主页 | http://www.gphoto.org/proj/libgphoto2/ |
| 仓库 | https://github.com/gphoto/libgphoto2 |
| 上游文档 | https://gphoto.sourceforge.io/doc |
| 许可证 | LGPL-2.1-or-later |
| 源码归档 | https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.34/libgphoto2-2.5.34.tar.bz2 |
| 最后更新 | 2026-05-30T14:49:37Z |
| Pulse | updated |
| 依赖 | gd, gettext, jpeg-turbo, libexif, libtool, libusb, libusb-compat |
| 构建依赖 | pkgconf |
| macOS 提供的库 | curl, libxml2 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libgphoto2 |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libgphoto2-6t64 2.5.31-4
gphoto2 digital camera library
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-6t64libgphoto2-dev 2.5.31-4
gphoto2 digital camera library (development files)
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-devlibgphoto2-dev-doc 2.5.31-4
gphoto2 digital camera library (development documentation)
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-dev-doclibgphoto2-l10n 2.5.31-4
gphoto2 digital camera library - localized messages
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-l10nlibgphoto2-port12t64 2.5.31-4
gphoto2 digital camera port library
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-port12t64libgphoto2
nix profile install nixpkgs#libgphoto2libgphoto2-6t64 2.5.31-2.1build2
gphoto2 digital camera library
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-6t64libgphoto2-dev 2.5.31-2.1build2
gphoto2 digital camera library (development files)
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-devlibgphoto2-dev-doc 2.5.31-2.1build2
gphoto2 digital camera library (development documentation)
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-dev-doclibgphoto2-l10n 2.5.31-2.1build2
gphoto2 digital camera library - localized messages
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-l10nlibgphoto2-port12t64 2.5.31-2.1build2
gphoto2 digital camera port library
https://github.com/gphoto/libgphoto2/
sudo apt install libgphoto2-port12t64libgphoto2 2.5.33-r1
The core library of gphoto2, designed to allow access to digital camera by external programs
sudo apk add libgphoto2libgphoto2-dev 2.5.33-r1
The core library of gphoto2, designed to allow access to digital camera by external programs (development files)
sudo apk add libgphoto2-devlibgphoto2-doc 2.5.33-r1
The core library of gphoto2, designed to allow access to digital camera by external programs (documentation)
sudo apk add libgphoto2-doclibgphoto2-udev 2.5.33-r1
The core library of gphoto2, designed to allow access to digital camera by external programs (udev rules)
sudo apk add libgphoto2-udevlibgphoto2 2.5.33-2.fc44
Library for accessing digital cameras
sudo dnf install libgphoto2来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.