# Install gphoto2 with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Command-line interface to libgphoto2. Version 2.5.32 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:gphoto2
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gphoto2
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gphoto2
```

  Evidence: MacPorts ports tree: graphics/gphoto2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add gphoto2
```

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

- Debian apt (92%):

```sh
sudo apt install gphoto2
```

  Evidence: Debian stable package indexes: gphoto2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gphoto2
```

  Evidence: Fedora Rawhide package metadata: gphoto2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gphoto2
```

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

- pacman (92%):

```sh
sudo pacman -S gphoto2
```

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

## Package facts

- **Package key:** brew:gphoto2
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gphoto2>
- **Version:** 2.5.32
- **Source summary:** Command-line interface to libgphoto2
- **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>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gphoto2 (cli)
- gphoto2 (alias)

## Dependencies

- gettext
- jpeg-turbo
- libexif
- libgphoto2
- popt
- readline

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.5.32
- Local data: ok
- Upstream repository: http://www.gphoto.org/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 2.4.2 series: NEWS records the split between capture-only and capture-and-download image commands.
- 2.4.7 series: NEWS records wait-event, wait-event-and-download, capture-tethered, and large-file download support.
- 2.4.10 series: NEWS records continuous movie capture via preview frames.
- 2.5.0 series: NEWS records keep/no-keep capture options, timed wait-event forms, and full configuration tree listing.
- 2.5.9 series: NEWS records source and issue tracking moving to GitHub.
- 2019-10-27: GitHub releases page records gphoto2 2.5.20 with larger file ranges and added shell commands.
- 2025-08-11: GitHub releases page records gphoto2 2.5.32 with EXIF retrieval commands and file-operation reverse ordering.

### Related projects

- Related projects include libgphoto2, gtkam, digiKam camera import support, desktop photo managers, camera tethering tools, PTP/MTP libraries, and distribution udev rules for camera access.

### Sources

- <https://github.com/gphoto/gphoto2>
- <https://github.com/gphoto/gphoto2/blob/master/NEWS>
- <https://github.com/gphoto/gphoto2/releases>
- <https://github.com/gphoto/libgphoto2/blob/master/NEWS>
- <https://www.gphoto.org/>
- <https://www.gphoto.org/doc/manual/ref-gphoto2-cli.html>
- <https://www.gphoto.org/proj/libgphoto2/>
- <https://www.gphoto.org/proj/libgphoto2/support.php>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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:** stable

## Other Package-Manager Records

- Debian apt - gphoto2 - 2.5.28-3: normalized package name match | Debian stable package indexes: gphoto2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | digital camera command-line client | https://github.com/gphoto/gphoto2
- Nix - gphoto2: normalized package name match | nixpkgs package indexes: pkgs/by-name/gp/gphoto2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gphoto2 - 2.5.28-2build2: normalized package name match | Ubuntu 24.04 LTS package indexes: gphoto2 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | digital camera command-line client | https://github.com/gphoto/gphoto2
- apk - gphoto2 - 2.5.32-r0: normalized package name match | Alpine Linux edge package indexes: gphoto2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Commandline utilities for accessing cameras | http://www.gphoto.org/
- apk - gphoto2-doc - 2.5.32-r0: normalized package name match | Alpine Linux edge package indexes: gphoto2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Commandline utilities for accessing cameras (documentation) | http://www.gphoto.org/
- apk - gphoto2-lang - 2.5.32-r0: normalized package name match | Alpine Linux edge package indexes: gphoto2-lang from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Languages for package gphoto2 | http://www.gphoto.org/
- dnf - gphoto2 - 2.5.28-5.fc44: normalized package name match | Fedora Rawhide package metadata: gphoto2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Software for accessing digital cameras | http://www.gphoto.org/
- pacman - gphoto2 - 2.5.32-1: normalized package name match | Arch Linux sync databases: gphoto2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A digital camera download and access program. | http://www.gphoto.org
- MacPorts - gphoto2: normalized package name match | MacPorts ports tree: graphics/gphoto2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libgphoto2](https://www.automicvault.com/pkg/brew/libgphoto2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [dcraw](https://www.automicvault.com/pkg/brew/dcraw/) - Shares av.db curated category or tags: cli, media, photography.
- [dnglab](https://www.automicvault.com/pkg/brew/dnglab/) - Shares av.db curated category or tags: cli, media, photography.
- [lensfun](https://www.automicvault.com/pkg/brew/lensfun/) - Shares av.db curated category or tags: cli, media, photography.
- [gphotos-uploader-cli](https://www.automicvault.com/pkg/brew/gphotos-uploader-cli/) - Shares av.db curated category or tags: cli, media, photography.
- [aravis](https://www.automicvault.com/pkg/brew/aravis/) - Shares av.db curated category or tags: camera, cli, media.
- [imagesnap](https://www.automicvault.com/pkg/brew/imagesnap/) - Shares av.db curated category or tags: camera, cli, media.
- [libpano](https://www.automicvault.com/pkg/brew/libpano/) - Shares av.db curated category or tags: cli, media, photography.
- [a52dec](https://www.automicvault.com/pkg/brew/a52dec/) - Shares av.db curated category or tags: cli, media.
- [fontforge](https://www.automicvault.com/pkg/brew/fontforge/) - Local package facts share a topical domain. Shared terms: cli, command-line, gettext, jpeg, jpeg-turbo.

## Combined YAML source

View the package source record on GitHub. [combined/gphoto2.yml](https://github.com/automic-vault/db/blob/main/combined/gphoto2.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
