macOS
brew install mandoclocal Homebrew formula metadata
sudo port install mandocMacPorts ports tree · textproc/mandoc/Portfile · 来源: api.github.com
安装
brew install mandoclocal Homebrew formula metadata
sudo port install mandocMacPorts ports tree · textproc/mandoc/Portfile · 来源: api.github.com
sudo apk add mandocAlpine Linux edge package indexes · mandoc · 来源: dl-cdn.alpinelinux.org
sudo apt install mandocDebian stable package indexes · mandoc · 来源: deb.debian.org
sudo dnf install mandocFedora Rawhide package metadata · mandoc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#mandocnixpkgs package indexes · pkgs/by-name/ma/mandoc/package.nix · 来源: api.github.com
sudo pacman -S mandocArch Linux sync databases · mandoc · 来源: geo.mirror.pkgbuild.com
sudo zypper install mandocopenSUSE Tumbleweed package metadata · mandoc · 来源: download.opensuse.org
scoop install main/mandocScoop official bucket manifest trees · bucket/mandoc.json · 来源: api.github.com
概览
UNIX manpage compiler toolset
历史
mandoc is a small, ISC-licensed Unix manual-page compiler toolset. Its official site describes it as compiling `mdoc`, `man`, and related roff manual sources to terminal output, HTML 5, PostScript, and PDF, with development centered on OpenBSD and BSD.lv.
The mandoc development history traces the project through the older `mdocml` name and rapid 2009 development by Kristaps Dzonsons, including releases around March and April 2009 and OpenBSD integration work. The `mandoc` name replaced `mdocterm` in March 2009, and the tool became closely associated with OpenBSD integration after cooperation between Kristaps Dzonsons and Ingo Schwarze.
The mandoc utility first appeared in OpenBSD 4.8. Over time it grew from a focused `mdoc` formatter into a broader toolset including `mandoc`, `man`, `apropos`, `makewhatis`, `catman`, `demandoc`, CGI support, database support, linting, HTML output, markdown output for `mdoc`, and related developer-facing libraries.
The official packages and ports page records broad adoption across BSDs and Linux distributions. OpenBSD bundled mandoc in the base system in 2010 and made it the default formatter, searcher, and viewer over later milestones; FreeBSD, NetBSD, DragonFly BSD, illumos, macOS, Alpine, Void, Debian, Ubuntu, Fedora, openSUSE, Gentoo, NixOS, and others have packages or integrations.
That adoption matters because mandoc is not just another formatter: on several systems it replaces or complements groff/man-db for everyday `man` and `apropos` usage, making it part of the base documentation experience.
At the CLI, `mandoc` reads `mdoc` or `man` input from files or stdin, auto-detects the language, and formats it for terminal display or other outputs. Output modes include ASCII, locale, UTF-8, HTML, man, markdown for `mdoc`, PDF, PostScript, and parse-tree output.
The `man.conf` manual documents `/etc/man.conf` as the configuration file for the mandoc-family `man`, `apropos`, and `makewhatis` utilities. Its directives can set manual search paths and output options, and the file is optional.
mandoc is significant to package maintainers because it is a lean alternative to full troff/groff stacks for manual-page rendering and validation. It is small, fast, portable C, and its linting helps find bad manual-page markup before packages ship.
It also has practical downstream impact: whether a system uses mandoc, man-db, groff, or a combination changes man-page rendering, HTML generation, apropos databases, and default configuration files.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
/etc/man.conf可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bsdapropos | cli | 全局可执行文件 | |
bsdmakewhatis | cli | 全局可执行文件 | |
bsdman | cli | 全局可执行文件 | |
bsdsoelim | cli | 全局可执行文件 | |
bsdwhatis | cli | 全局可执行文件 | |
demandoc | cli | 全局可执行文件 | |
mandoc | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:mandoc |
|---|---|
| 版本 | 1.14.6 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/mandoc |
| 主页 | https://mandoc.bsd.lv/ |
| 仓库 | https://mandoc.bsd.lv/cgi-bin/cvsweb/mandoc |
| 上游文档 | https://mandoc.bsd.lv/ |
| 许可证 | ISC |
| 源码归档 | https://mandoc.bsd.lv/snapshots/mandoc-1.14.6.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mandoc |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 1 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
mandoc 1.14.6-4
BSD manpage compiler toolset
sudo apt install mandocmandoc
nix profile install nixpkgs#mandocmandoc 1.14.6-1
BSD manpage compiler toolset
sudo apt install mandocmandoc 1.14.6-r15
mandoc (formerly mdocml) UNIX manpage compiler toolset
sudo apk add mandocmandoc-apropos 1.14.6-r15
makewhatis/whatis and apropos tools and index
sudo apk add mandoc-aproposmandoc-dev 1.14.6-r15
mandoc (formerly mdocml) UNIX manpage compiler toolset (development files)
sudo apk add mandoc-devmandoc-doc 1.14.6-r15
mandoc (formerly mdocml) UNIX manpage compiler toolset (documentation)
sudo apk add mandoc-docmandoc-soelim 1.14.6-r15
so elimination tool
sudo apk add mandoc-soelimlibmandoc-devel 1.14.6-13.fc44
Development libraries and headers for libmandoc
sudo dnf install libmandoc-develmandoc 1.14.6-13.fc44
A suite of tools for compiling mdoc and man
sudo dnf install mandocmandoc 1.14.6-5
A suite of tools compiling mdoc from the OpenBSD project
sudo pacman -S mandocmandoc 1.14.6-7.3
UNIX manpage compiler
sudo zypper install mandocmandoc-bin 1.14.6-7.3
Format manual pages
sudo zypper install mandoc-binmandoc
sudo port install mandocmain/mandoc
scoop install main/mandoc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.