macOS
brew install gphoto2local Homebrew formula metadata
sudo port install gphoto2MacPorts ports tree · graphics/gphoto2/Portfile · source: api.github.com
brew
Command-line interface to libgphoto2. Version 2.5.32 via Homebrew; verified from local package data.
install
brew install gphoto2local Homebrew formula metadata
sudo port install gphoto2MacPorts ports tree · graphics/gphoto2/Portfile · source: api.github.com
sudo apk add gphoto2Alpine Linux edge package indexes · gphoto2 · source: dl-cdn.alpinelinux.org
sudo apt install gphoto2Debian stable package indexes · gphoto2 · source: deb.debian.org
sudo dnf install gphoto2Fedora Rawhide package metadata · gphoto2 · source: dl.fedoraproject.org
nix profile install nixpkgs#gphoto2nixpkgs package indexes · pkgs/by-name/gp/gphoto2/package.nix · source: api.github.com
sudo pacman -S gphoto2Arch Linux sync databases · gphoto2 · source: geo.mirror.pkgbuild.com
overview
Command-line interface to libgphoto2
history
gphoto2 is the command-line frontend for libgphoto2, the gPhoto project's camera access library. It gives Unix-like systems a scriptable way to inspect, download from, configure, and in many cases remotely control digital cameras.
The gPhoto project describes gPhoto2 as a free, redistributable set of digital camera software applications for Unix-like systems. The gphoto2 repository README defines the package itself as the command-line frontend to libgphoto2.
The project history is inseparable from libgphoto2. The library provides camera drivers and protocol support, while the CLI exposes that support for users, scripts, tethered shooting, camera configuration, preview capture, and file operations.
The gphoto2 NEWS file records years of CLI-focused evolution: split capture and download commands, `--capture-tethered`, event waiting, movie capture, filename templating improvements, parsable file listings, EXIF retrieval, and signal-controlled long-running capture operations.
gphoto2 became a standard package in Unix-like distributions because camera access was not uniform across vendors or protocols. The gPhoto homepage explicitly names Linux, FreeBSD, NetBSD, macOS, and major Linux distributions as supported or packaged environments.
Its adoption is also tied to automation. Photographers, labs, kiosks, astrophotography setups, archive workflows, and CI-like hardware rigs can call a CLI command where GUI photo importers are too manual.
Users run `gphoto2` to list cameras and files, download images, set or read camera configuration, trigger captures, wait for camera events, capture tethered sessions, and stream or save previews depending on camera support.
The manual page describes gphoto2 as a command-line client for a cross-platform digital camera library. The repository README lists libgphoto2 as the required library and popt as the command-line option dependency, with optional EXIF, JPEG, CDK, and AALIB support.
gphoto2 is a classic package-manager favorite because it bridges hardware, scripting, and desktop media workflows. Installing it pulls together the CLI, libgphoto2, USB/serial camera support, translations, optional preview libraries, and udev-style integration handled by distributions.
For maintainers, the hard part is not the small CLI but the moving camera ecosystem underneath it. libgphoto2 NEWS entries continually add camera IDs, protocol quirks, PTP behavior, vendor-specific configuration, Android file-descriptor support, and security fixes for untrusted USB devices.
security posture
narrow executable 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 | 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.
install metadata
| Package key | brew:gphoto2 |
|---|---|
| Version | 2.5.32 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/gphoto2 |
| Homepage | http://www.gphoto.org/ |
| Repository | https://github.com/gphoto/gphoto2 |
| Upstream docs | https://www.gphoto.org/doc/manual |
| License | GPL-2.0-or-later |
| Source archive | https://downloads.sourceforge.net/project/gphoto/gphoto/2.5.32/gphoto2-2.5.32.tar.bz2 |
| Dependencies | gettext, jpeg-turbo, libexif, libgphoto2, popt, readline |
| Build dependencies | pkgconf |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gphoto2 |
| 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.
gphoto2 2.5.28-3
digital camera command-line client
https://github.com/gphoto/gphoto2
sudo apt install gphoto2gphoto2
nix profile install nixpkgs#gphoto2gphoto2 2.5.28-2build2
digital camera command-line client
https://github.com/gphoto/gphoto2
sudo apt install gphoto2gphoto2 2.5.32-r0
Commandline utilities for accessing cameras
sudo apk add gphoto2gphoto2-doc 2.5.32-r0
Commandline utilities for accessing cameras (documentation)
sudo apk add gphoto2-docgphoto2-lang 2.5.32-r0
Languages for package gphoto2
sudo apk add gphoto2-langgphoto2 2.5.28-5.fc44
Software for accessing digital cameras
sudo dnf install gphoto2gphoto2 2.5.32-1
A digital camera download and access program.
sudo pacman -S gphoto2gphoto2
sudo port install gphoto2source 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.