pkg.soopen package index

brew / rank 1629

Install libgphoto2 with Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper

Gphoto2 digital camera library. Version 2.5.34 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libgphoto2-6t64.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libgphoto2

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libgphoto2

MacPorts ports tree · devel/libgphoto2/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libgphoto2

Alpine Linux edge package indexes · libgphoto2 · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install libgphoto2

Fedora Rawhide package metadata · libgphoto2 · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libgphoto2

nixpkgs package indexes · pkgs/by-name/li/libgphoto2/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S libgphoto2

Arch Linux sync databases · libgphoto2 · source: geo.mirror.pkgbuild.com

Debian aptverified · 92%
sudo apt install libgphoto2-6t64

Debian stable package indexes · libgphoto2-6t64 · source: deb.debian.org

openSUSE zypperverified · 92%
sudo zypper install libgphoto2-6

openSUSE Tumbleweed package metadata · libgphoto2-6 · source: download.opensuse.org

overview

Package summary

Gphoto2 digital camera library

Commands and aliases

  • gphoto2-config
  • gphoto2-port-config

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew bottle metadata was recorded.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gphoto2-configexecutableindexed executableDiscovered from the local executable index.
gphoto2-port-configexecutableindexed executableDiscovered from the local executable index.

freshness

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

page generated2026-08-03
manager version2.5.34
manager updated
local dataunknown
upstreamnot available
latest detectednot detected
  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:libgphoto2
Version2.5.34
Package managerHomebrew
Homepagehttp://www.gphoto.org/proj/libgphoto2/
Repositoryhttps://github.com/gphoto/libgphoto2
Bottlenot recorded
Servicenone declared

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libgphoto2-6t64 2.5.31-4

gphoto2 digital camera library

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-6t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libgphoto2
  • 8 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Libgphoto2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgphoto2-6t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgphoto2-dev 2.5.31-4

gphoto2 digital camera library (development files)

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libgphoto2
  • 3 dependencies
  • normalized package name match
  • Matched by: Libgphoto2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgphoto2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgphoto2-dev-doc 2.5.31-4

gphoto2 digital camera library (development documentation)

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-dev-doc
  • Section: doc
  • Architecture: all
  • Source Package: libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgphoto2-dev-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgphoto2-l10n 2.5.31-4

gphoto2 digital camera library - localized messages

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-l10n
  • Section: localization
  • Architecture: all
  • Source Package: libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgphoto2-l10n from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libgphoto2-port12t64 2.5.31-4

gphoto2 digital camera port library

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-port12t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libgphoto2
  • 3 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libgphoto2
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libgphoto2-port12t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libgphoto2

nix profile install nixpkgs#libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libgphoto2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libgphoto2-6t64 2.5.31-2.1build2

gphoto2 digital camera library

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-6t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libgphoto2
  • 8 dependencies
  • 1 provides
  • 2 optional deps
  • normalized package name match
  • Matched by: Libgphoto2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgphoto2-6t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libgphoto2-dev 2.5.31-2.1build2

gphoto2 digital camera library (development files)

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libgphoto2
  • 3 dependencies
  • normalized package name match
  • Matched by: Libgphoto2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgphoto2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libgphoto2-dev-doc 2.5.31-2.1build2

gphoto2 digital camera library (development documentation)

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-dev-doc
  • Section: doc
  • Architecture: all
  • Source Package: libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgphoto2-dev-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libgphoto2-l10n 2.5.31-2.1build2

gphoto2 digital camera library - localized messages

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-l10n
  • Section: localization
  • Architecture: all
  • Source Package: libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgphoto2-l10n from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libgphoto2-port12t64 2.5.31-2.1build2

gphoto2 digital camera port library

https://github.com/gphoto/libgphoto2/

sudo apt install libgphoto2-port12t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libgphoto2
  • 3 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libgphoto2
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libgphoto2-port12t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

libgphoto2 2.5.33-r1

The core library of gphoto2, designed to allow access to digital camera by external programs

http://www.gphoto.org

sudo apk add libgphoto2
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: libgphoto2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libgphoto2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libgphoto2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libgphoto2-dev 2.5.33-r1

The core library of gphoto2, designed to allow access to digital camera by external programs (development files)

http://www.gphoto.org

sudo apk add libgphoto2-dev
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: libgphoto2
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libgphoto2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libgphoto2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libgphoto2-doc 2.5.33-r1

The core library of gphoto2, designed to allow access to digital camera by external programs (documentation)

http://www.gphoto.org

sudo apk add libgphoto2-doc
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libgphoto2-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

libgphoto2-udev 2.5.33-r1

The core library of gphoto2, designed to allow access to digital camera by external programs (udev rules)

http://www.gphoto.org

sudo apk add libgphoto2-udev
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: libgphoto2
  • normalized package name match
  • Matched by: Libgphoto2
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libgphoto2-udev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

libgphoto2 2.5.33-3.fc45

Library for accessing digital cameras

http://www.gphoto.org/

sudo dnf install libgphoto2
  • License: GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND BSD-3-Clause AND IJG-short AND (MIT
  • Category: Unspecified
  • Architecture: i686
  • Source Package: libgphoto2
  • 12 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Libgphoto2
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: libgphoto2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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