macOS
brew install libgphoto2local Homebrew formula metadata
sudo port install libgphoto2MacPorts ports tree · devel/libgphoto2/Portfile · source: api.github.com
brew
Gphoto2 digital camera library. Version 2.5.34 via Homebrew; verified 2026-05-30.
install
brew install libgphoto2local Homebrew formula metadata
sudo port install libgphoto2MacPorts ports tree · devel/libgphoto2/Portfile · source: api.github.com
sudo apk add libgphoto2Alpine Linux edge package indexes · libgphoto2 · source: dl-cdn.alpinelinux.org
sudo apt install libgphoto2-6t64Debian stable package indexes · libgphoto2-6t64 · source: deb.debian.org
sudo dnf install libgphoto2Fedora Rawhide package metadata · libgphoto2 · source: dl.fedoraproject.org
nix profile install nixpkgs#libgphoto2nixpkgs package indexes · pkgs/by-name/li/libgphoto2/package.nix · source: api.github.com
sudo pacman -S libgphoto2Arch Linux sync databases · libgphoto2 · source: geo.mirror.pkgbuild.com
sudo zypper install libgphoto2-6openSUSE Tumbleweed package metadata · libgphoto2-6 · source: download.opensuse.org
overview
Gphoto2 digital camera library
history
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.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
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 |
|---|---|---|---|
gphoto2-config | cli | global executable | |
gphoto2-port-config | 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.
http://www.gphoto.org/proj/libgphoto2/
install metadata
| Package key | brew:libgphoto2 |
|---|---|
| Version | 2.5.34 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libgphoto2 |
| Homepage | http://www.gphoto.org/proj/libgphoto2/ |
| Repository | https://github.com/gphoto/libgphoto2 |
| Upstream docs | https://gphoto.sourceforge.io/doc |
| License | LGPL-2.1-or-later |
| Source archive | https://downloads.sourceforge.net/project/gphoto/libgphoto/2.5.34/libgphoto2-2.5.34.tar.bz2 |
| Last updated | 2026-05-30T14:49:37Z |
| Pulse | updated |
| Dependencies | gd, gettext, jpeg-turbo, libexif, libtool, libusb, libusb-compat |
| Build dependencies | pkgconf |
| Uses from macOS | curl, libxml2 |
| 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 | 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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 libgphoto2source 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.