# Install gocr with Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper

Optical Character Recognition (OCR), converts images back to text. Version 0.52 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:gocr
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gocr
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gocr
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install gocr
```

  Evidence: Debian stable package indexes: gocr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install gocr
```

  Evidence: Fedora Rawhide package metadata: gocr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gocr
```

  Evidence: nixpkgs package indexes: pkgs/by-name/go/gocr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S gocr
```

  Evidence: Arch Linux sync databases: gocr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install gocr
```

  Evidence: openSUSE Tumbleweed package metadata: gocr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:gocr
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gocr>
- **Version:** 0.52
- **Source summary:** Optical Character Recognition (OCR), converts images back to text
- **Homepage:** <https://wasd.urz.uni-magdeburg.de/jschulen/ocr/>
- **Repository:** <https://sourceforge.net/p/jocr/code>
- **Upstream docs:** <https://jocr.sourceforge.net/>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://wasd.urz.uni-magdeburg.de/jschulen/ocr/gocr-0.52.tar.gz>
- **Last updated:** 2026-06-22T19:58:33+02:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- gocr (cli)
- gocr.tcl (cli)
- gocr (alias)
- gocr.tcl (alias)

## Dependencies

- jpeg-turbo
- netpbm

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.52
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://wasd.urz.uni-magdeburg.de/jschulen/ocr/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GOCR, also known as JOCR on SourceForge, is a command-line optical character recognition program by Joerg Schulenburg. It converts scanned image files back into text and represents an older Unix-style OCR tool that stayed useful enough to remain packaged across many systems.

### Project history

The official GOCR page says Schulenburg started the program, led the SourceForge developer team, and continued maintaining the package at a low time base after 2010. The site explains the dual naming: the program's original and internal name is GOCR, while the SourceForge project used JOCR because the gocr project name was unavailable there.

The SourceForge-era history is visible in the official news stream: 0.3.0 appeared in December 2000, libgocr was made publicly available in April 2001, 0.37 arrived in August 2002, and the 0.40 through 0.49 series carried the project through the 2005 to 2010 period. Later releases 0.50, 0.51, and 0.52 were announced from the maintainer site rather than always being uploaded to SourceForge.

### Adoption history

GOCR's adoption pattern is classic pre-GitHub free software: SourceForge hosting, CVS development, tarball releases, mailing-list support, and downstream packaging. The official download page mentions RPMs, Debian packages, Windows binaries, OS/2 packages, and SourceForge source tarballs.

The batch package metadata lists GOCR in Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE package sets. That broad downstream footprint matters more than upstream velocity: OCR users and scanning frontends kept relying on a small C command-line engine that packagers could build and ship.

### How it is used

GOCR is used from the command line to read supported image formats and emit text. The official page notes that it can be used with different frontends and can open many image formats, with additional formats handled through external tools such as NetPBM.

The project is best understood as a lightweight OCR engine and utility for scanned text, not a modern machine-learning OCR stack. It is most useful where scriptability, old-format support, and small dependency surfaces matter.

### Why package nerds care

Package nerds care about GOCR because it is a living fossil of early SourceForge packaging culture: CVS, tarballs, distro patches, optional graphical frontends, and long-lived formulae. It shows how a quiet C utility can survive for decades because it is easy for distributions to keep carrying.

Its GOCR/JOCR naming split is also a small lesson in package identity: upstream command names, project-hosting names, tarball names, and distro package names do not always line up cleanly.

### Timeline

- 2000-06: SourceForge hosting began for the JOCR project, according to the official page.
- 2000-12: GOCR 0.3.0 announced.
- 2001-04: libgocr public beta announced.
- 2005-03: GOCR 0.40 released.
- 2010-09: GOCR 0.49 released.
- 2013-03: GOCR 0.50 released.
- 2017-08: GOCR 0.51 released.
- 2018-10: GOCR 0.52 released.

### Related projects

- libgocr was the related API/library effort documented on the official site.
- NetPBM is an important companion dependency for broader image-format handling.
- Kooka, XSane, and other scanning frontends are adjacent tools that historically used command-line OCR engines.

### Sources

- <https://formulae.brew.sh/api/formula/gocr.json>
- <https://jocr.sourceforge.net/>
- <https://jocr.sourceforge.net/developers.html>
- <https://jocr.sourceforge.net/download.html>
- <https://sourceforge.net/p/jocr/code/>
- <https://sourceforge.net/projects/jocr/rss?path=/gocr>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gocr
- **Aliases:** jocr
- **Version Scheme:** 0
- **Revision:** 2
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - gocr - 0.52-6.1+b1: normalized package name match | Debian stable package indexes: gocr from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line OCR | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Debian apt - gocr-tk - 0.52-6.1: normalized package name match | Debian stable package indexes: gocr-tk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tcl/tk wrapper around gocr | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Debian apt - libpgm2asc-dev - 0.52-6.1+b1: normalized package name match | Debian stable package indexes: libpgm2asc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line OCR - development files | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Debian apt - libpgm2asc0.52t64 - 0.52-6.1+b1: normalized package name match | Debian stable package indexes: libpgm2asc0.52t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command line OCR - shared library | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Nix - gocr: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/gocr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gocr - 0.52-6.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gocr from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line OCR | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Ubuntu apt - gocr-tk - 0.52-6.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gocr-tk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tcl/tk wrapper around gocr | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Ubuntu apt - libpgm2asc-dev - 0.52-6.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpgm2asc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line OCR - development files | https://www-e.uni-magdeburg.de/jschulen/ocr/
- Ubuntu apt - libpgm2asc0.52t64 - 0.52-6.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libpgm2asc0.52t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command line OCR - shared library | https://www-e.uni-magdeburg.de/jschulen/ocr/
- dnf - gocr - 0.52-18.fc44: normalized package name match | Fedora Rawhide package metadata: gocr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | GNU Optical Character Recognition program | http://jocr.sourceforge.net/
- pacman - gocr - 0.52-3: normalized package name match | Arch Linux sync databases: gocr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | OCR (Optical Character Recognition) program, which converts scanned images of text back to text files | https://www-e.uni-magdeburg.de/jschulen/ocr/
- zypper - gocr - 0.52-3.10: normalized package name match | openSUSE Tumbleweed package metadata: gocr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Optical Character Recognition Program | https://www-e.uni-magdeburg.de/jschulen/ocr/index.html
- zypper - gocr-gui - 0.52-3.10: normalized package name match | openSUSE Tumbleweed package metadata: gocr-gui from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Optical Character Recognition Program - Basic Graphical Interface | https://www-e.uni-magdeburg.de/jschulen/ocr/index.html
- MacPorts - gocr: normalized package name match | MacPorts ports tree: graphics/gocr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [netpbm](https://www.automicvault.com/pkg/brew/netpbm/) - Runtime dependency declared by Homebrew.
- [ocrad](https://www.automicvault.com/pkg/brew/ocrad/) - Shares av.db curated category or tags: cli, image-processing, media, ocr, text-recognition.
- [tesseract](https://www.automicvault.com/pkg/brew/tesseract/) - Shares av.db curated category or tags: cli, image-processing, media, ocr, text-recognition.
- [ssocr](https://www.automicvault.com/pkg/brew/ssocr/) - Shares av.db curated category or tags: cli, image-processing, media, ocr.
- [ocrmypdf](https://www.automicvault.com/pkg/brew/ocrmypdf/) - Shares av.db curated category or tags: cli, media, ocr.
- [babl](https://www.automicvault.com/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [caire](https://www.automicvault.com/pkg/brew/caire/) - Shares av.db curated category or tags: cli, image-processing, media.
- [camellia](https://www.automicvault.com/pkg/brew/camellia/) - Shares av.db curated category or tags: cli, image-processing, media.
- [ctl](https://www.automicvault.com/pkg/brew/ctl/) - Shares av.db curated category or tags: cli, image-processing, media.
- [sng](https://www.automicvault.com/pkg/brew/sng/) - Both packages work with overlapping file formats or content types. Shared terms: cli, image, image-processing, media, processing.

## Combined YAML source

View the package source record on GitHub. [combined/gocr.yml](https://github.com/automic-vault/db/blob/main/combined/gocr.yml)


## Sources

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