# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, scoop 安装 jhead

查看 jhead 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:jhead
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jhead
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jhead
```

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

### Linux

- apk (92%):

```sh
sudo apk add jhead
```

  证据: Alpine Linux edge package indexes: jhead from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install jhead
```

  证据: Debian stable package indexes: jhead from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install jhead
```

  证据: Fedora Rawhide package metadata: jhead 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#jhead
```

  证据: nixpkgs package indexes: pkgs/by-name/jh/jhead/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S jhead
```

  证据: Arch Linux sync databases: jhead from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/jhead
```

  证据: Scoop official bucket manifest trees: bucket/jhead.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:jhead
- **软件包管理器:** Homebrew
- **版本:** 3.08
- **来源摘要:** Extract Digicam setting info from EXIF JPEG headers
- **主页:** <https://github.com/Matthias-Wandel/jhead>
- **仓库:** <https://github.com/Matthias-Wandel/jhead>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- jhead (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.08
## 项目历史与用法

jhead is Matthias Wandel's small command-line utility for displaying and modifying metadata in digital-camera image files. It began as an EXIF inspection tool for JPEGs and later grew practical metadata operations such as timestamp adjustment, thumbnail handling, comment editing, metadata stripping, and orientation-based rotation.

### 项目历史

The official README says Wandel first wrote jhead in 1999, when there was not much software for looking inside EXIF headers. The source file header records development from December 1999 through March 2026, and the repository preserves the author's long-running public-domain C utility.

The project's own notes explain its design goal: stay small, simple, and understandable rather than compete with larger metadata suites. Wandel explicitly points users who need broad metadata coverage to ExifTool or Exiv2, while positioning jhead as a fast utility and readable codebase for understanding EXIF internals.

### 采用历史

jhead spread through Unix package collections because it filled an everyday digital-camera need with one C executable. The README notes availability in many Linux distributions and ports trees, and the Homebrew formula preserves it as a compact image-metadata command.

Its adoption belongs to the early digital photography era, when users wanted shell tools to rename photos by capture time, fix camera clock mistakes, rotate JPEGs according to orientation tags, and strip or inspect metadata in batches.

### 使用方式

jhead is commonly used to print camera settings, set file timestamps from EXIF dates, adjust EXIF time fields, rename files using photo timestamps, remove metadata sections, edit comments, and invoke jpegtran for lossless rotation according to EXIF orientation.

The tool is deliberately not a general metadata framework. Its docs tell users to reach for ExifTool or Exiv2 when they need broader format or tag coverage.

### 为什么软件包爱好者会关心

jhead is a classic package-manager utility: tiny, scriptable, portable C, no service dependency, and useful in pipelines. It is the kind of tool that persists in distro archives because it solves a narrow job with little operational weight.

It also documents a useful package-design tradeoff. Rather than absorb every EXIF feature, it keeps a stable small-tool identity while coexisting with heavier metadata projects.

### 时间线

- 1999: Matthias Wandel wrote jhead to inspect EXIF headers from digital-camera JPEG files.
- 2020: The GitHub repository was created as an official public source location.
- 2026: The source header records the maintained version line as jhead 3.3 and a Dec 1999 to Mar 2026 development span.

### Related projects

- ExifTool is the larger metadata utility that jhead's README recommends for broader feature coverage.
- Exiv2 is another metadata tool named by the jhead README as a more sophisticated alternative.
- jpegtran is commonly paired with jhead for lossless rotation driven by EXIF orientation data.

### 来源

- <https://formulae.brew.sh/formula/jhead>
- <https://github.com/Matthias-Wandel/jhead>
- <https://raw.githubusercontent.com/Matthias-Wandel/jhead/master/jhead.c>
- <https://raw.githubusercontent.com/Matthias-Wandel/jhead/master/readme.txt>
- <https://raw.githubusercontent.com/Matthias-Wandel/jhead/master/usage.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - jhead - 1:3.08-3: normalized package name match | Debian stable package indexes: jhead from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | manipulate the non-image part of Exif compliant JPEG files | https://www.sentex.net/~mwandel/jhead/
- Nix - jhead: normalized package name match | nixpkgs package indexes: pkgs/by-name/jh/jhead/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - jhead - 1:3.08-2: normalized package name match | Ubuntu 24.04 LTS package indexes: jhead from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | manipulate the non-image part of Exif compliant JPEG files | https://www.sentex.net/~mwandel/jhead/
- apk - jhead - 3.08-r0: normalized package name match | Alpine Linux edge package indexes: jhead from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Exif Jpeg header manipulation tool | http://www.sentex.net/~mwandel/jhead/
- apk - jhead-doc - 3.08-r0: normalized package name match | Alpine Linux edge package indexes: jhead-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Exif Jpeg header manipulation tool (documentation) | http://www.sentex.net/~mwandel/jhead/
- dnf - jhead - 3.08-8.fc45: normalized package name match | Fedora Rawhide package metadata: jhead from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tool for displaying EXIF data embedded in JPEG images | http://www.sentex.net/~mwandel/jhead/
- pacman - jhead - 3.08-3: normalized package name match | Arch Linux sync databases: jhead from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | EXIF JPEG info parser and thumbnail remover | http://www.sentex.net/~mwandel/jhead/
- MacPorts - jhead: normalized package name match | MacPorts ports tree: graphics/jhead/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/jhead: normalized package name match | Scoop official bucket manifest trees: bucket/jhead.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

- 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
