# gphoto2 mit Homebrew, apk, apt, dnf, MacPorts, Nix, pacman installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für gphoto2 in AI-Agent-Workflows.

## Installation

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

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install gphoto2
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gphoto2
```

  Evidenz: 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
```

  Evidenz: 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
```

  Evidenz: 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
```

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

- Nix (92%):

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

  Evidenz: 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
```

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

## Paketfakten

- **Paketschlüssel:** brew:gphoto2
- **Paketmanager:** Homebrew
- **Version:** 2.5.32
- **Quellzusammenfassung:** Command-line interface to libgphoto2
- **Homepage:** <http://www.gphoto.org/>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- gphoto2 (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 2.5.32
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

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


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals

## Andere Paketmanager-Einträge

- 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-6.fc45: normalized package name match | Fedora Rawhide package metadata: gphoto2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## Combined YAML source

View the package source record on GitHub. [combined/gphoto2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gphoto2.yml)


## Quellen

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