认识
官网:https://man-db.gitlab.io/man-db/
文档:
仓库:https://gitlab.com/man-db/man-db
man-db is an implementation of the standard Unix documentation system accessed using the man command. It uses a Berkeley DB database in place of the traditional flat-text whatis databases. 简而言之,Man-DB,该软件包包含用于查看和查找 Man-pages 的程序。
组成
在 Man-DB 中,包含的命令及作用
查找手册
- man 格式化并显示指定的手册页面;
- apropos 在数据库中,搜索描述或名字包含给定字符串的命令。
- whatis 搜索数据库,显示指定系统命令的简短描述。
- lexgrog 解析手册页中的头信息,对给定的手册页面显示一行简短的描述。
维护手册数据库
- catman 创建或更新预先格式化的手册页。
- mandb 创建或者更新手册页索引缓存。
- accessdb 以易读的形式,打印 man-db 数据库的内容。
- manpath 打印$MANPATH 或者 man.conf 中设置的手册搜索路径,确定手册页的搜索路径。
构建
man-db is used by several popular GNU/Linux distributions, including: Arch Linux, Debian, Dragora GNU/Linux, Fedora (as of 14), Gentoo, openSUSE, Ubuntu, …
其实大多数发行版里都已经包含 Man-DB 工具,所以也不需要单独安装。
应用
WIP
参考
- LFS-7.1.0/6.67. Man-DB-2.7.5 | 本文围绕 Man-DB v2.7.5 展开介绍。
- The Man-pages Website: https://www.kernel.org/doc/man-pages/index.html