# libgphoto2 mit Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper installieren

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

## Installation

```sh
sudo av install brew:libgphoto2
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install libgphoto2
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libgphoto2
```

  Evidenz: MacPorts ports tree: devel/libgphoto2/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libgphoto2
```

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

- dnf (92%):

```sh
sudo dnf install libgphoto2
```

  Evidenz: Fedora Rawhide package metadata: libgphoto2 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#libgphoto2
```

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

- pacman (92%):

```sh
sudo pacman -S libgphoto2
```

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

- Debian apt (92%):

```sh
sudo apt install libgphoto2-6t64
```

  Evidenz: Debian stable package indexes: libgphoto2-6t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libgphoto2-6
```

  Evidenz: openSUSE Tumbleweed package metadata: libgphoto2-6 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:libgphoto2
- **Paketmanager:** Homebrew
- **Version:** 2.5.34
- **Quellzusammenfassung:** Gphoto2 digital camera library
- **Homepage:** <http://www.gphoto.org/proj/libgphoto2/>
- **Repository:** <https://github.com/gphoto/libgphoto2>
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- gphoto2-config (Alias)
- gphoto2-port-config (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

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

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

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

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.

### Zeitleiste

- 2000: The generated support output credits gphoto2 copyright beginning in 2000.
- 2015-08-01: The gPhoto project announced migration to GitHub for code hosting and issue tracking.
- 2022-01-03: libgphoto2 and gphoto2 2.5.28 were announced with cleanup of obsolete OS/2 and hotplug packaging support.
- 2025-07-06: libgphoto2 and gphoto2 2.5.32 were announced with Meson build support, runtime-configurable library paths, and many camera IDs.
- 2026-05-30: libgphoto2 2.5.34 was announced and the support page listed 3013 supported cameras and media players.

### Related projects

- gphoto2 is the command-line frontend that exposes libgphoto2 functions for users and scripts.
- gtkam, gphotofs, digiKam, gThumb, Shotwell, Darktable, Entangle, and GIMP integrations are examples of applications or frontends using the library.
- PTP, MTP, and PictBridge are camera/media protocols that shape libgphoto2's driver model.

### Quellen

- <http://www.gphoto.org/>
- <http://www.gphoto.org/proj/libgphoto2/>
- <https://github.com/gphoto/libgphoto2>
- <https://github.com/gphoto/libgphoto2/blob/master/NEWS>
- <https://github.com/gphoto/libgphoto2/blob/master/README.md>
- <https://gphoto.sourceforge.io/proj/libgphoto2/support.php>


## Sicherheitshinweise

library-like package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- library-like package without higher-risk signals

## Andere Paketmanager-Einträge

- Debian apt - libgphoto2-6t64 - 2.5.31-4: normalized package name match | Debian stable package indexes: libgphoto2-6t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gphoto2 digital camera library | https://github.com/gphoto/libgphoto2/
- Debian apt - libgphoto2-dev - 2.5.31-4: normalized package name match | Debian stable package indexes: libgphoto2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gphoto2 digital camera library (development files) | https://github.com/gphoto/libgphoto2/
- Debian apt - libgphoto2-dev-doc - 2.5.31-4: normalized package name match | Debian stable package indexes: libgphoto2-dev-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gphoto2 digital camera library (development documentation) | https://github.com/gphoto/libgphoto2/
- Debian apt - libgphoto2-l10n - 2.5.31-4: normalized package name match | Debian stable package indexes: libgphoto2-l10n from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gphoto2 digital camera library - localized messages | https://github.com/gphoto/libgphoto2/
- Debian apt - libgphoto2-port12t64 - 2.5.31-4: normalized package name match | Debian stable package indexes: libgphoto2-port12t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gphoto2 digital camera port library | https://github.com/gphoto/libgphoto2/
- Nix - libgphoto2: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libgphoto2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libgphoto2-6t64 - 2.5.31-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgphoto2-6t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | gphoto2 digital camera library | https://github.com/gphoto/libgphoto2/
- Ubuntu apt - libgphoto2-dev - 2.5.31-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgphoto2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | gphoto2 digital camera library (development files) | https://github.com/gphoto/libgphoto2/
- Ubuntu apt - libgphoto2-dev-doc - 2.5.31-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgphoto2-dev-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | gphoto2 digital camera library (development documentation) | https://github.com/gphoto/libgphoto2/
- Ubuntu apt - libgphoto2-l10n - 2.5.31-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgphoto2-l10n from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | gphoto2 digital camera library - localized messages | https://github.com/gphoto/libgphoto2/
- Ubuntu apt - libgphoto2-port12t64 - 2.5.31-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libgphoto2-port12t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | gphoto2 digital camera port library | https://github.com/gphoto/libgphoto2/
- apk - libgphoto2 - 2.5.33-r1: normalized package name match | Alpine Linux edge package indexes: libgphoto2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The core library of gphoto2, designed to allow access to digital camera by external programs | http://www.gphoto.org
- apk - libgphoto2-dev - 2.5.33-r1: normalized package name match | Alpine Linux edge package indexes: libgphoto2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The core library of gphoto2, designed to allow access to digital camera by external programs (development files) | http://www.gphoto.org
- apk - libgphoto2-doc - 2.5.33-r1: normalized package name match | Alpine Linux edge package indexes: libgphoto2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The core library of gphoto2, designed to allow access to digital camera by external programs (documentation) | http://www.gphoto.org
- apk - libgphoto2-udev - 2.5.33-r1: normalized package name match | Alpine Linux edge package indexes: libgphoto2-udev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | The core library of gphoto2, designed to allow access to digital camera by external programs (udev rules) | http://www.gphoto.org
- dnf - libgphoto2 - 2.5.33-3.fc45: normalized package name match | Fedora Rawhide package metadata: libgphoto2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for accessing digital cameras | http://www.gphoto.org/


## Combined YAML source

View the package source record on GitHub. [combined/libgphoto2.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libgphoto2.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
