# 使用 Homebrew, apk, apt, MacPorts, Nix, pacman, dnf 安装 asciidoctor

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

## 安装

```sh
sudo av install brew:asciidoctor
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install asciidoctor
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install asciidoctor
```

  证据: MacPorts ports tree: textproc/asciidoctor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add asciidoctor
```

  证据: Alpine Linux edge package indexes: asciidoctor from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install asciidoctor
```

  证据: Debian stable package indexes: asciidoctor from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#asciidoctor
```

  证据: nixpkgs package indexes: pkgs/by-name/as/asciidoctor/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S asciidoctor
```

  证据: Arch Linux sync databases: asciidoctor from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- dnf (92%):

```sh
sudo dnf install rubygem-asciidoctor
```

  证据: Fedora Rawhide package metadata: rubygem-asciidoctor from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:asciidoctor
- **软件包管理器:** Homebrew
- **版本:** 2.0.26
- **来源摘要:** Text processor and publishing toolchain for AsciiDoc
- **主页:** <https://asciidoctor.org/>
- **仓库:** <https://github.com/asciidoctor/asciidoctor>
- **最后更新:** 2026-06-13T01:02:48+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- asciidoctor (别名)
- asciidoctor-pdf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.0.26
## 项目历史与用法

Asciidoctor is the Ruby-based AsciiDoc processor and publishing toolchain that became the successor to AsciiDoc.py. The official docs describe it as the current reference implementation for interpreting the AsciiDoc language and as the core of a broader ecosystem of runtimes, extensions, converters, and build plugins.

### 项目历史

The official history traces Asciidoctor to GitHub's need to process AsciiDoc in Ruby for the GitHub application and git-scm.com documentation. GitHub was removing AsciiDoc.py-based rendering because of security and subprocess concerns, while a Ruby implementation had started for the Git website.

Nick Hengeveld made the first `asciidoc.rb` prototype commit for git-scm.com on 2012-04-03. Ryan Waldron made the first Asciidoctor commit on 2012-06-01 using that prototype lineage, and the first Asciidoctor gem release followed on 2012-06-14. In January 2013, GitHub re-enabled AsciiDoc rendering using Asciidoctor instead of AsciiDoc.py, and the project moved to the asciidoctor organization.

Dan Allen took project leadership in April 2013. The project quickly grew beyond the Ruby gem: AsciidoctorJ, Maven and Gradle plugins, Asciidoctor.js, Diagram, PDF, EPUB3, browser preview, and other tooling appeared in the official timeline. Asciidoctor 1.5.0 in 2014 introduced a modernized AsciiDoc syntax, and Asciidoctor 2.0.0 was released in March 2019.

### 采用历史

Asciidoctor's adoption story is unusually explicit in the official history: it preserved GitHub repository rendering for AsciiDoc in 2013, powered git-scm.com documentation, crossed into JVM and JavaScript environments, and reached one million RubyGems downloads by November 2016 and ten million by December 2020.

The current docs describe distribution through RubyGems, Docker images, numerous Linux distribution packages, Homebrew, and MacPorts. The input package facts confirm packaging in Homebrew, Alpine, Debian, Fedora as rubygem-asciidoctor, MacPorts, Nix, Arch, and Ubuntu.

### 使用方式

The primary CLI is `asciidoctor`; users run `asciidoctor document.adoc` to produce HTML by default, or select converters and options for HTML5, DocBook, man pages, custom stylesheets, safe modes, extensions, and API-driven conversion. The same core can be used from Ruby, via AsciidoctorJ on the JVM, or via Asciidoctor.js in JavaScript and browser tooling.

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

Asciidoctor matters to package nerds because it is both a replacement for a security-sensitive legacy processor and a multi-runtime documentation platform. It touches Ruby gems, Linux distro packages, Homebrew, MacPorts, Docker, Maven, Gradle, browser extensions, and JavaScript packages, while serving as the practical reference for a markup language used to build docs, books, man pages, and websites.

### 时间线

- 2012-04-03: First asciidoc.rb prototype commit for git-scm.com.
- 2012-06-01: First Asciidoctor commit by Ryan Waldron.
- 2012-06-14: First Asciidoctor gem release, 0.0.1.
- 2013-01-17: GitHub re-enables AsciiDoc rendering using Asciidoctor.
- 2013-04-16: Project leadership transfers to Dan Allen.
- 2013-04-25: First Asciidoctor release by Dan Allen, 0.1.2.
- 2014-08-12: Asciidoctor 1.5.0 released with modernized AsciiDoc syntax.
- 2016-11-26: Asciidoctor gem reaches over one million downloads.
- 2019-03-22: Asciidoctor 2.0.0 released.
- 2020-12-13: Asciidoctor gem reaches over ten million downloads.

### Related projects

- AsciiDoc.py is the legacy Python processor Asciidoctor succeeded.
- AsciidoctorJ runs Asciidoctor on the JVM and underpins Maven, Gradle, and Java integrations.
- Asciidoctor.js transpiles the Ruby source to JavaScript for browser, Node.js, and editor-preview use.
- Asciidoctor PDF, EPUB3, Diagram, reveal.js, and related extensions expand output formats and authoring workflows.

### 来源

- <https://docs.asciidoctor.org/about/history/>
- <https://docs.asciidoctor.org/asciidoctor/latest/>
- <https://docs.asciidoctor.org/asciidoctor/latest/cli/>
- <https://github.com/asciidoctor/asciidoctor>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - asciidoctor - 2.0.23-1: normalized package name match | Debian stable package indexes: asciidoctor from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AsciiDoc to HTML rendering for Ruby | https://asciidoctor.org
- Debian apt - asciidoctor-doc - 2.0.23-1: normalized package name match | Debian stable package indexes: asciidoctor-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AsciiDoc to HTML rendering for Ruby (documentation) | https://asciidoctor.org
- Debian apt - ruby-asciidoctor - 2.0.23-1: normalized package name match | Debian stable package indexes: ruby-asciidoctor from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | AsciiDoc to HTML rendering for Ruby (core libraries) | https://asciidoctor.org
- Nix - asciidoctor: normalized package name match | nixpkgs package indexes: pkgs/by-name/as/asciidoctor/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - asciidoctor - 2.0.20-1: normalized package name match | Ubuntu 24.04 LTS package indexes: asciidoctor from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AsciiDoc to HTML rendering for Ruby | https://asciidoctor.org
- Ubuntu apt - asciidoctor-doc - 2.0.20-1: normalized package name match | Ubuntu 24.04 LTS package indexes: asciidoctor-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AsciiDoc to HTML rendering for Ruby (documentation) | https://asciidoctor.org
- Ubuntu apt - ruby-asciidoctor - 2.0.20-1: normalized package name match | Ubuntu 24.04 LTS package indexes: ruby-asciidoctor from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | AsciiDoc to HTML rendering for Ruby (core libraries) | https://asciidoctor.org
- apk - asciidoctor - 2.0.26-r0: normalized package name match | Alpine Linux edge package indexes: asciidoctor from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Converter for AsciiDoc to HTML5, DocBook 5 (or 4.5) and other formats | https://rubygems.org/gems/asciidoctor
- dnf - rubygem-asciidoctor - 2.0.26-3.fc45: normalized package name match | Fedora Rawhide package metadata: rubygem-asciidoctor from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A fast, open source AsciiDoc implementation in Ruby | https://asciidoctor.org
- pacman - asciidoctor - 2.0.26-1: normalized package name match | Arch Linux sync databases: asciidoctor from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | An implementation of AsciiDoc in Ruby | https://asciidoctor.org
- MacPorts - asciidoctor: normalized package name match | MacPorts ports tree: textproc/asciidoctor/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- pacman - asciidoctor-pdf - 2.3.24-1: installed executable or alias match | Arch Linux sync databases: asciidoctor-pdf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A native PDF converter for AsciiDoc based on Asciidoctor and Prawn | https://github.com/asciidoctor/asciidoctor-pdf


## Combined YAML source

View the package source record on GitHub. [combined/asciidoctor.yml](https://github.com/mxcl/pkgdb/blob/main/combined/asciidoctor.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
