pkg.soopen package index

brew / 排名 1541

使用 Homebrew, apt, dnf, pacman 安装 pygments

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install pygments

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install python-pygments-doc

Debian stable package indexes · python-pygments-doc · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install python3-pygments

Fedora Rawhide package metadata · python3-pygments · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S python-pygments

Arch Linux sync databases · python-pygments · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Generic syntax highlighter

命令和别名

  • pygmentize

历史

项目历史与用法

Pygments is a generic Python syntax-highlighting library and command-line tool for programming languages and structured text formats.

项目历史

Pygments began with the 0.5 public release in October 2006 and reached 1.0 in November 2008. The 1.1 release added Python 3 support in 2009. Continued releases have expanded its lexer collection and maintained both the embeddable Python API and the `pygmentize` command.

采用历史

Pygments' library-first design let documentation generators, code-hosting systems, forums, wikis, and other applications embed the same lexer-and-formatter machinery. Its pure-Python distribution and permissive license also made it straightforward for language and operating-system package managers to carry.

使用方式

Use `pygmentize` for shell pipelines and file conversion, selecting lexers, formatters, and styles as needed. Python applications can instead call the Pygments API directly to lex source text and produce HTML, terminal, document, or image output.

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

Pygments is infrastructure that users often consume indirectly through documentation and publishing tools. Package maintainers care about its broad lexer inventory, stable token model, plugin interface, and ability to emit terminal, HTML, LaTeX, image, and other presentation formats from one implementation.

时间线

  • 2006-10-30: Version 0.5 was the initial public release
  • 2008-11-23: Version 1.0 was released
  • 2009-09-11: Version 1.1 introduced Python 3 support

Related projects

  • Sphinx
  • Docutils
  • Jinja
  • GNU Source-highlight

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
pygmentizecli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-11-04
管理器版本2.21.0
管理器更新时间2026-10-10
本地数据OK
上游not checked
检测到的最新版本未检测到

https://pygments.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://pygments.org/none 置信度

安装元数据

软件包元数据

软件包键brew:pygments
版本2.21.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/pygments
主页https://pygments.org/
仓库https://github.com/pygments/pygments
上游文档https://pygments.org/
许可证BSD-2-Clause
源码归档https://files.pythonhosted.org/packages/49/2e/ced460408999b33da6b31b0021b0f37d329e202d4169aeb164493778f25b/pygments-2.21.0.tar.gz
最后更新2026-10-10T19:07:44Z
Pulseupdated
依赖python@3.15
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepygments
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

python-pygments-doc 2.18.0+dfsg-2

documentation for the Pygments

https://pygments.org/

sudo apt install python-pygments-doc
  • Section: doc
  • Architecture: all
  • Source Package: pygments
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Pygments
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python-pygments-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-pygments 2.18.0+dfsg-2

syntax highlighting package written in Python 3

https://pygments.org/

sudo apt install python3-pygments
  • Section: python
  • Architecture: all
  • Source Package: pygments
  • 1 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Pygments
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-pygments from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

python-pygments-doc 2.17.2+dfsg-1

documentation for the Pygments

https://pygments.org/

sudo apt install python-pygments-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: pygments
  • 1 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Pygments
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python-pygments-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

python3-pygments 2.17.2+dfsg-1

syntax highlighting package written in Python 3

https://pygments.org/

sudo apt install python3-pygments
  • Section: python
  • Architecture: all
  • Source Package: pygments
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Pygments
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-pygments from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
dnf92%

python3-pygments 2.20.0-5.fc45

Syntax highlighting engine written in Python

https://pygments.org/

sudo dnf install python3-pygments
  • License: BSD-2-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: python-pygments
  • 2 依赖
  • 6 提供
  • installed executable or alias match
  • 匹配方式:Pygmentize
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-pygments from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
pacman92%

python-pygments 2.20.0-1

Python syntax highlighter

https://pygments.org/

sudo pacman -S python-pygments
  • License: BSD-2-Clause
  • Architecture: any
  • 1 依赖
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Pygmentize
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: python-pygments from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation