# 使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 ocrad

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

## 安装

```sh
sudo av install brew:ocrad
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ocrad
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ocrad
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install ocrad
```

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

- dnf (92%):

```sh
sudo dnf install ocrad
```

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

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

- pacman (92%):

```sh
sudo pacman -S ocrad
```

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

- zypper (92%):

```sh
sudo zypper install ocrad
```

  证据: openSUSE Tumbleweed package metadata: ocrad from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ocrad
- **软件包管理器:** Homebrew
- **版本:** 0.29
- **来源摘要:** Optical character recognition (OCR) program
- **主页:** <https://www.gnu.org/software/ocrad/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ocrad (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU Ocrad is a command-line OCR program and C++ library that recognizes text from PNG and PNM-family images using feature extraction rather than a trained-shape database. It produces byte or UTF-8 text and includes layout analysis for columns and text blocks.

### 项目历史

The GNU Ocrad manual carries copyright years 2003-2024 for Antonio Diaz Diaz, and the Free Software Directory identifies it as a GNU package. GNU’s FTP archive shows public release tarballs for the 0.14 through 0.17 series in 2006 and 2007, while the manual documents version 0.29 dated 18 January 2024.

The manual characterizes Ocrad as mainly a research project with ad hoc algorithms that may change as the author gains OCR understanding. That framing explains both the project’s small scope and its historical importance: it is a free-software OCR engine built around explicit image-processing and character-recognition code, not a wrapper around a larger OCR system.

### 采用历史

Ocrad entered package repositories as a small GNU utility and library for OCR workflows before Tesseract dominated most open-source OCR packaging. Homebrew, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, and openSUSE-family metadata list packages for it or its development library, keeping it available for scripts and programs that need a lightweight OCR backend.

### 使用方式

Users invoke `ocrad` on PNG, PBM, PGM, or PPM images, optionally enabling layout analysis, scaling, thresholding, rotation, character-set selection, postprocessing filters, and UTF-8 output. The manual also documents conversion pipelines from PostScript, PDF, TIFF, JPEG, and compressed PNM through Ghostscript or Netpbm-style tools before recognition.

As a library, Ocrad exposes functions for loading images, setting output format and thresholds, running recognition, and retrieving block, line, and character results. Its OCR results file format gives downstream programs access to text blocks, line positions, character boxes, guesses, and confidence values.

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

For package metadata, Ocrad is a good example of a GNU-era single-purpose C++ utility that is both an executable and a library. It connects classic Unix image pipelines, OCR experimentation, GPL packaging, and downstream development packages such as Debian and Ubuntu’s `libocrad-dev`.

### 时间线

- 2003: the manual’s copyright range begins, matching Ocrad’s early GNU-era development period.
- 2006-2007: GNU FTP archives list 0.14, 0.15, 0.16, and 0.17 release tarballs.
- 2022: the Free Software Directory listed 0.28 as a stable release dated 17 January 2022.
- 2024-01-18: the GNU manual documents version 0.29.

### Related projects

- Ocrad belongs with GNU image/text-processing utilities, Netpbm and Ghostscript conversion pipelines, and OCR front ends or callers that can use a command-line OCR backend.

### 来源

- <https://directory.fsf.org/wiki/Ocrad>
- <https://ftp.gnu.org/gnu/ocrad/>
- <https://savannah.gnu.org/projects/ocrad/>
- <https://www.gnu.org/software/ocrad/manual/ocrad_manual.html>
- source_facts.executables
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - libocrad-dev - 0.29-1: normalized package name match | Debian stable package indexes: libocrad-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | optical character recognition library | https://www.gnu.org/software/ocrad/ocrad.html
- Debian apt - ocrad - 0.29-1: normalized package name match | Debian stable package indexes: ocrad from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | optical character recognition program | https://www.gnu.org/software/ocrad/ocrad.html
- Nix - ocrad: normalized package name match | nixpkgs package indexes: pkgs/by-name/oc/ocrad/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libocrad-dev - 0.28-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libocrad-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | optical character recognition library | https://www.gnu.org/software/ocrad/ocrad.html
- Ubuntu apt - ocrad - 0.28-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: ocrad from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | optical character recognition program | https://www.gnu.org/software/ocrad/ocrad.html
- dnf - ocrad - 0.29-7.fc45: normalized package name match | Fedora Rawhide package metadata: ocrad from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | An Optical Character Recognition program | http://www.gnu.org/software/ocrad/ocrad.html
- pacman - ocrad - 0.29-3: normalized package name match | Arch Linux sync databases: ocrad from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | OCR (Optical Character Recognition) program based on a feature extraction method | https://www.gnu.org/software/ocrad/
- zypper - ocrad - 0.29-1.9: normalized package name match | openSUSE Tumbleweed package metadata: ocrad from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Optical Character Recognition Program | https://www.gnu.org/software/ocrad/
- zypper - ocrad-devel - 0.29-1.9: normalized package name match | openSUSE Tumbleweed package metadata: ocrad-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for GNU ocrad | https://www.gnu.org/software/ocrad/
- MacPorts - ocrad: normalized package name match | MacPorts ports tree: graphics/ocrad/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/ocrad.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ocrad.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
