Skip to content

Install on Linux

Quick install

Terminal window
curl -fsSL anonymizer.site/install | sh

The installer sets up uv if needed, installs docs-anonymizer under your user account, and offers optional Tesseract OCR setup on apt-based systems. Do not run it with sudo.

If you prefer to manage every package yourself, use the manual steps below.

Manual uv install

Terminal window
curl -LsSf https://astral.sh/uv/install.sh | sh

Then start a new shell so uv is on PATH.

Terminal window
uv tool install docs-anonymizer

Install Tesseract language data if you need scanned or hybrid PDF OCR:

Terminal window
# Ubuntu / Debian
sudo apt install tesseract-ocr tesseract-ocr-eng tesseract-ocr-rus
# Fedora
sudo dnf install tesseract tesseract-langpack-eng tesseract-langpack-rus
# Arch
sudo pacman -S tesseract tesseract-data-eng tesseract-data-rus

Run:

Terminal window
anonymize

Your browser opens at http://127.0.0.1:<port>.

Where it installs

  • ~/.local/share/uv/tools/docs-anonymizer/ — the wheel and its dependencies
  • ~/.local/bin/anonymize — the launcher

Tested distros

Maintainer-tested:

  • Ubuntu 22.04 / 24.04
  • Debian 12 (bookworm)
  • Fedora 39+
  • Arch (rolling)

Should work on any glibc-based 64-bit Linux. The installer pins Python 3.12 via uv tool install --python 3.12 because blis (a transitive spaCy dependency) only ships pre-built wheels for cp310–cp312. uv downloads a managed CPython 3.12 if your system has only 3.13+ installed. Alpine / musl is not supported (PyMuPDF wheels require glibc).

Verify OCR after installing Tesseract:

Terminal window
anonymize doctor --no-network