# gphoto2 を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman でインストール

gphoto2 のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gphoto2
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gphoto2
```

  証拠: 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
```

  証拠: 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
```

  証拠: 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
```

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

- Nix (92%):

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

  証拠: 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
```

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

## パッケージ情報

- **パッケージキー:** brew:gphoto2
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/gphoto2>
- **バージョン:** 2.5.32
- **ソース概要:** Command-line interface to libgphoto2
- **ホームページ:** <http://www.gphoto.org/>
- **上流ドキュメント:** <http://www.gphoto.org/>
- **ライセンス:** GPL-2.0-or-later
- **ソースアーカイブ:** <https://downloads.sourceforge.net/project/gphoto/gphoto/2.5.32/gphoto2-2.5.32.tar.bz2>
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- gphoto2 (cli)
- gphoto2 (エイリアス)

## 依存関係

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

## ビルド依存関係

- pkgconf

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.5.32
- ローカルデータ: OK
- 上流リポジトリ: http://www.gphoto.org/
- 情報: No package-manager update timestamp was available.
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

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.

### タイムライン

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

### ソース

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


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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


## 関連リンク

- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://pkg.so/ja/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Web development packages](https://pkg.so/ja/web-dev-tools/) - Matched web development metadata.
- [gettext](https://pkg.so/ja/brew/gettext/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://pkg.so/ja/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [libgphoto2](https://pkg.so/ja/brew/libgphoto2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [imagesnap](https://pkg.so/ja/brew/imagesnap/) - Shares pkgdb curated category or tags: camera, cli, media.
- [aravis](https://pkg.so/ja/brew/aravis/) - Shares pkgdb curated category or tags: camera, cli, media.
- [dcraw](https://pkg.so/ja/brew/dcraw/) - Shares pkgdb curated category or tags: cli, media, photography.
- [lensfun](https://pkg.so/ja/brew/lensfun/) - Shares pkgdb curated category or tags: cli, media, photography.
- [dnglab](https://pkg.so/ja/brew/dnglab/) - Shares pkgdb curated category or tags: cli, media, photography.
- [libpano](https://pkg.so/ja/brew/libpano/) - Shares pkgdb curated category or tags: cli, media, photography.
- [ffmpeg](https://pkg.so/ja/brew/ffmpeg/) - Shares pkgdb curated category or tags: cli, media.
- [libpng](https://pkg.so/ja/brew/libpng/) - Shares pkgdb curated category or tags: cli, media.
- [fontforge](https://pkg.so/ja/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/mxcl/pkgdb/blob/main/combined/gphoto2.yml)


## ソース

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