我正在使用运行 Linux 内核版本 3.8.0-32-generic 的 Ubuntu 13.04。 手册页
版本是:
[manu@laptop] man-pages: man --version
man 2.6.3
我想知道这个 man-pages
版本和我的内核版本之间的链接是什么。在使用 C 进行编程时,我使用了一个系统调用,该系统调用已在 man-pages
3.47 中添加了手册页(在第 2 节中)。有什么方法可以让我以干净的方式安装这个 man 版本。我所说的“干净”是指确保我不会使用我的 Linux 内核或 Linux libc 不支持的内容来更新某些手册页。
根据Keith的回答进行编辑
[manu@laptop] man-pages: dpkg -l | grep "\-doc"
ii libx11-doc 2:1.5.0-1ubuntu1.1 all X11 client-side library (development documentation)
ii lmbench-doc 3.0-a9-1 all Documentation for the lmbench benchmark suite
ii mozart-doc 1.4.0-8ubuntu1 all Mozart Programming System (Documentation)
ii perl-doc 5.14.2-21 all Perl documentation
ii texlive-doc-base 2012.20120611-1 all TeX Live: TeX Live documentation
ii texlive-fonts-recommended-doc 2012.20120611-5 all TeX Live: Documentation files for texlive-fonts-recommended
ii texlive-latex-base-doc 2012.20120611-5 all TeX Live: Documentation files for texlive-latex-base
ii texlive-latex-extra-doc 2012.20120611-2 all TeX Live: Documentation files for texlive-latex-extra
ii texlive-latex-recommended-doc 2012.20120611-5 all TeX Live: Documentation files for texlive-latex-recommended
ii texlive-pictures-doc 2012.20120611-5 all TeX Live: Documentation files for texlive-pictures
ii texlive-pstricks-doc 2012.20120611-2 all TeX Live: Documentation files for texlive-pstricks
ii texlive-science-doc 2012.20120611-2 all TeX Live: Documentation files for texlive-science
ii transcode-doc 3:1.1.7-4 all Text console video-stream processing tool (documentation)
ii ubuntu-docs 13.04.3 all Ubuntu Desktop Guide
ii xorg-docs-core 1:1.6-1ubuntu2 all Core documentation for the X.org X Window System
ii xorg-sgml-doctools 1:1.10-1 all Common tools for building X.Org SGML documentation
搜索 manpages 包的结果
[manu@laptop] man-pages: dpkg -l | grep "manpages"
ii manpages 3.44-0ubuntu1 all Manual pages about using a GNU/Linux system
ii manpages-dev 3.44-0ubuntu1 all Manual pages about using GNU/Linux for development
ii manpages-posix 2.16-1 all Manual pages about using POSIX system
ii manpages-posix-dev 2.16-1 all Manual pages about using a POSIX system for development
最佳答案
2.6.3
是 man
命令的版本,而不是已安装的手册页的版本。除了 man
命令本身之外,它与任何其他内容都不相关。手册页面与man
命令分开管理,通常位于名称包含-doc
的包中。
通常,您的软件包管理系统应使文档与您安装的软件保持同步。 dpkg -l
应该告诉您您拥有的每个软件包的版本。
关于c - 手册页版本与 Linux 内核和 libc 版本有何关系?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19732942/