# Install pygments with Homebrew, apt, dnf, pacman

Generic syntax highlighter. Version 2.20.0 via Homebrew; verified from local package data. Also installable with debian: sudo apt install python-pygments-doc.

## Install

```sh
sudo av install brew:pygments
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pygments
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python-pygments-doc
```

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

- dnf (92%):

```sh
sudo dnf install python3-pygments
```

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

- pacman (92%):

```sh
sudo pacman -S python-pygments
```

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

## Package facts

- **Package key:** brew:pygments
- **Package manager:** Homebrew
- **Version:** 2.20.0
- **Source summary:** Generic syntax highlighter
- **Homepage:** <https://pygments.org/>
- **Repository:** <https://github.com/pygments/pygments>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- pygmentize (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.20.0

## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Debian apt - python-pygments-doc - 2.18.0+dfsg-2: normalized package name match | Debian stable package indexes: python-pygments-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | documentation for the Pygments | https://pygments.org/
- Debian apt - python3-pygments - 2.18.0+dfsg-2: normalized package name match | Debian stable package indexes: python3-pygments from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | syntax highlighting package written in Python 3 | https://pygments.org/
- Ubuntu apt - python-pygments-doc - 2.17.2+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python-pygments-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | documentation for the Pygments | https://pygments.org/
- Ubuntu apt - python3-pygments - 2.17.2+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-pygments from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | syntax highlighting package written in Python 3 | https://pygments.org/
- dnf - python3-pygments - 2.20.0-5.fc45: installed executable or alias match | Fedora Rawhide package metadata: python3-pygments from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Syntax highlighting engine written in Python | https://pygments.org/
- pacman - python-pygments - 2.20.0-1: installed executable or alias match | Arch Linux sync databases: python-pygments from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Python syntax highlighter | https://pygments.org/


## Combined YAML source

View the package source record on GitHub. [combined/pygments.yml](https://github.com/mxcl/pkgdb/blob/main/combined/pygments.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
