# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 5.5.3
- **来源摘要:** OCR (Optical Character Recognition) engine
- **主页:** <https://tesseract-ocr.github.io/>
- **仓库:** <https://github.com/tesseract-ocr/tesseract>
- **最后更新:** 2026-07-25T00:56:36Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- 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 (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for tesseract | https://github.com/tesseract-ocr/tesseract


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
