# 使用 Homebrew, chocolatey, dnf, MacPorts, Nix, pacman, zypper, apt, scoop, winget 安装 tesseract

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

## 安装

```sh
sudo av install brew:tesseract
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install tesseract
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install tesseract
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install tesseract
```

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

  证据: nixpkgs package indexes: tesseract from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S tesseract
```

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

- zypper (92%):

```sh
sudo zypper install tesseract
```

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

- Debian apt (92%):

```sh
sudo apt install libtesseract-dev
```

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

### Windows

- Chocolatey (92%):

```sh
choco install tesseract
```

  证据: Chocolatey community package catalog: tesseract from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','termius'

- Scoop (92%):

```sh
scoop install main/tesseract
```

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

- winget (92%):

```sh
winget install --id Tesseract.Tesseract.Stable -e
```

  证据: Windows Package Manager source index: Tesseract.Tesseract.Stable from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:tesseract
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/tesseract>
- **版本:** 5.5.3
- **来源摘要:** OCR (Optical Character Recognition) engine
- **主页:** <https://tesseract-ocr.github.io/>
- **仓库:** <https://github.com/tesseract-ocr/tesseract>
- **上游文档:** <https://tesseract-ocr.github.io/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/tesseract-ocr/tesseract/archive/refs/tags/5.5.3.tar.gz>
- **最后更新:** 2026-07-25T00:56:36Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ambiguous_words (cli)
- classifier_tester (cli)
- cntraining (cli)
- combine_lang_model (cli)
- combine_tessdata (cli)
- dawg2wordlist (cli)
- lstmeval (cli)
- lstmtraining (cli)
- merge_unicharsets (cli)
- mftraining (cli)
- set_unicharset_properties (cli)
- shapeclustering (cli)
- tesseract (cli)
- text2image (cli)
- unicharset_extractor (cli)
- wordlist2dawg (cli)
- ambiguous_words (别名)
- classifier_tester (别名)
- cntraining (别名)
- combine_lang_model (别名)
- combine_tessdata (别名)
- dawg2wordlist (别名)
- lstmeval (别名)
- lstmtraining (别名)
- merge_unicharsets (别名)
- mftraining (别名)
- set_unicharset_properties (别名)
- shapeclustering (别名)
- tesseract (别名)
- text2image (别名)
- unicharset_extractor (别名)
- wordlist2dawg (别名)

## 依赖

- cairo
- fontconfig
- freetype
- gettext
- glib
- harfbuzz
- icu4c@78
- leptonica
- libarchive
- pango

## 构建依赖

- autoconf
- automake
- libtool
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 注意事项: This formula contains only the "eng", "osd", and "snum" language data files. If you need any other supported languages, run `brew install tesseract-lang`.
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 5.5.3
- 管理器更新时间: 2026-07-25
- 本地数据: OK
- 上游仓库: https://github.com/tesseract-ocr/tesseract
- 检测到的最新版本: 5.5.3 (当前)
## 项目历史与用法

Tesseract is one of the canonical open-source OCR engines and includes both libtesseract and the `tesseract` command-line program. Official docs describe an Apache-licensed OCR engine usable from the shell or through C and C++ APIs, with Unicode support, trained data for more than 100 languages, and output formats including plain text, hOCR, searchable PDF, TSV, ALTO, and PAGE.

### 项目历史

Tesseract began as a Hewlett-Packard OCR engine developed at HP Laboratories Bristol and HP Greeley between 1985 and 1994. HP later made Windows and C++ changes, open-sourced the project in 2005, and Google developed it from 2006 until August 2017.

The modern project is maintained in the tesseract-ocr GitHub organization. The official README names Stefan Weil as current lead developer, Ray Smith as lead developer until 2017, and Zdenko Podobny as maintainer. Tesseract 4 introduced an LSTM neural-network recognizer, and version 5 became the current stable major line with release 5.0.0 on November 30, 2021.

### 采用历史

Tesseract's adoption is unusually broad for a CLI package because it sits at the boundary between desktop utilities, archival workflows, library APIs, and machine-learning-era OCR. Package metadata lists it across Homebrew, Chocolatey, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, winget, and openSUSE, reflecting long-term cross-platform demand.

### 使用方式

The classic package-manager usage is `tesseract imagename outputbase`, optionally adding language, OCR engine mode, page segmentation mode, and config files. Users install language data, run OCR from shell scripts, generate text or searchable PDFs, and let higher-level wrappers call libtesseract where an application needs embedded OCR.

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

Tesseract is a package-nerd landmark because installing it correctly is often half the battle: the engine, traineddata files, image libraries, compiler flags, and wrapper bindings must line up. It is also a rare package where command-line users, distro maintainers, data archivists, and application developers all care about the same executable.

### 时间线

- 1985-1994: Hewlett-Packard develops the original Tesseract OCR engine.
- 2005: HP open-sources Tesseract.
- 2006: Official release notes list Tesseract 1.00 on June 17, 2006.
- 2006-2017: Google develops Tesseract.
- 2018: Tesseract 4.0.0 released with the LSTM-era OCR engine.
- 2021: Tesseract 5.0.0 released on November 30, 2021.
- 2025: Release notes list Tesseract 5.5.2 on December 26, 2025.

### Related projects

- Tesseract is closely related to tessdata trained models, Leptonica image processing, OCRopus LSTM history, GUI front ends, language-specific wrappers, and document-processing tools that need OCR output.

### 来源

- <https://github.com/tesseract-ocr/tesseract official README history, maintainers, supported languages, formats, and command-line form.>
- <https://tesseract-ocr.github.io/tessdoc/ official user manual and 5.x documentation.>
- <https://tesseract-ocr.github.io/tessdoc/ReleaseNotes.html official release chronology.>
- <https://tesseract-ocr.github.io/tessdoc/tess4/NeuralNetsInTesseract4.00.html official LSTM subsystem overview.>
- source_facts.package-manager lists broad package-manager coverage.


## 安全说明

broad file, network, media, or database tool signal. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- broad file, network, media, or database tool signal
- infrastructure mutation or orchestration signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** tesseract
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - libtesseract-dev - 5.5.0-1+b1: normalized package name match | Debian stable package indexes: libtesseract-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for the tesseract command line OCR tool | https://github.com/tesseract-ocr/
- Debian apt - libtesseract5 - 5.5.0-1+b1: normalized package name match | Debian stable package indexes: libtesseract5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tesseract OCR library | https://github.com/tesseract-ocr/
- Debian apt - tesseract-ocr - 5.5.0-1+b1: normalized package name match | Debian stable package indexes: tesseract-ocr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tesseract command line OCR tool | https://github.com/tesseract-ocr/
- Debian apt - tesseract-ocr-all - 5.5.0-1: normalized package name match | Debian stable package indexes: tesseract-ocr-all from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tesseract OCR with all language and script packages | https://github.com/tesseract-ocr/
- Nix - tesseract: normalized package name match | nixpkgs package indexes: tesseract from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - libtesseract-dev - 5.3.4-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: libtesseract-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development files for the tesseract command line OCR tool | https://github.com/tesseract-ocr/
- Ubuntu apt - libtesseract5 - 5.3.4-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: libtesseract5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tesseract OCR library | https://github.com/tesseract-ocr/
- Ubuntu apt - tesseract-ocr - 5.3.4-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: tesseract-ocr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tesseract command line OCR tool | https://github.com/tesseract-ocr/
- Ubuntu apt - tesseract-ocr-all - 5.3.4-1build5: normalized package name match | Ubuntu 24.04 LTS package indexes: tesseract-ocr-all from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tesseract OCR with all language and script packages | https://github.com/tesseract-ocr/
- dnf - mingw32-tesseract - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: mingw32-tesseract from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | MinGW Windows tesseract-ocr library | https://github.com/tesseract-ocr/tesseract
- dnf - mingw32-tesseract-tools - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: mingw32-tesseract-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | MinGW Windows tesseract-ocr library tools | https://github.com/tesseract-ocr/tesseract
- dnf - mingw64-tesseract - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: mingw64-tesseract from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | MinGW Windows tesseract-ocr library | https://github.com/tesseract-ocr/tesseract
- dnf - mingw64-tesseract-tools - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: mingw64-tesseract-tools from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | MinGW Windows tesseract-ocr library tools | https://github.com/tesseract-ocr/tesseract
- dnf - tesseract - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: tesseract from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Raw OCR Engine | https://github.com/tesseract-ocr/tesseract
- dnf - tesseract-common - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: tesseract-common from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Configuration files for ${name} | https://github.com/tesseract-ocr/tesseract
- dnf - tesseract-devel - 5.5.3-1.fc45: normalized package name match | Fedora Rawhide package metadata: tesseract-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for tesseract | https://github.com/tesseract-ocr/tesseract


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://pkg.so/zh-hans/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [fontconfig](https://pkg.so/zh-hans/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Runtime dependency declared by Homebrew.
- [pango](https://pkg.so/zh-hans/brew/pango/) - Runtime dependency declared by Homebrew.
- [cairo](https://pkg.so/zh-hans/brew/cairo/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [libtool](https://pkg.so/zh-hans/brew/libtool/) - Build dependency declared by Homebrew.
- [autoconf](https://pkg.so/zh-hans/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://pkg.so/zh-hans/brew/automake/) - Build dependency declared by Homebrew.
- [ghostscript](https://pkg.so/zh-hans/brew/ghostscript/) - Popular package that depends on this formula.
- [opencv](https://pkg.so/zh-hans/brew/opencv/) - Popular package that depends on this formula.
- [ocrmypdf](https://pkg.so/zh-hans/brew/ocrmypdf/) - Popular package that depends on this formula.
- [summarize](https://pkg.so/zh-hans/brew/summarize/) - Popular package that depends on this formula.
- [ffmpeg-full](https://pkg.so/zh-hans/brew/ffmpeg-full/) - Popular package that depends on this formula.
- [pytorch](https://pkg.so/zh-hans/brew/pytorch/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [mlx](https://pkg.so/zh-hans/brew/mlx/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [hf](https://pkg.so/zh-hans/brew/hf/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [libtensorflow](https://pkg.so/zh-hans/brew/libtensorflow/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [sentencepiece](https://pkg.so/zh-hans/brew/sentencepiece/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [lightgbm](https://pkg.so/zh-hans/brew/lightgbm/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.
- [ncnn](https://pkg.so/zh-hans/brew/ncnn/) - Shares pkgdb curated category or tags: ai, cli, machine-learning, ml-tools.

## Combined YAML source

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