vagrant安装的最小化的centos,偶然发现没办法使用man查看命令帮助。
1.查看xargs帮助信息
$ man xargs
-bash: man: command not found
这个很好理解,没装嘛,好吧,yum
2.先看一下man在哪个包里
# yum provides man
man-1.6f-32.el6.x86_64 : A set of documentation tools: man,apropos and whatis
Repo : base
3.安装man
# yum install -y man
4.再看看帮助
# man xargs
Cannot open the message catalog "man" for locale "zh_CN.UTF-8"
(NLSPATH="/usr/share/locale/%l/LC_MESSAGES/%N")
5.网上搜了半天,看到一堆莫名其妙的东西,此处略去俩小时。。。。
6.虽然yum可以处理依赖,等等,依赖,是不是缺少什么东西?各种查找
# yum search man|grep ^man
man.x86_64 : A set of documentation tools: man,apropos and whatis
man-pages.noarch : Man (manual) pages from the Linux Documentation Project
man-pages-cs.noarch : Czech man pages from the Linux Documentation Project
man-pages-es.noarch : Spanish man pages from the Linux Documentation Project
man-pages-es-extra.noarch : Extra manual pages - Spanish versions
man-pages-fr.noarch : French version of the Linux man-pages
man-pages-it.noarch : Italian man (manual) pages from the Linux Documentation
man-pages-ja.noarch : Japanese man (manual) pages from the Japanese Manual
man-pages-ko.noarch : Korean(Hangul) Man(manual) Pages from the Korean Manpage
man-pages-overrides.noarch : Complementary and updated manual pages
man-pages-pl.noarch : Polish man pages from the Linux Documentation Project
man-pages-ru.noarch : Russian man pages from the Linux Documentation Project
man-pages-uk.noarch : Ukrainian man pages from the Linux Documentation Project
man-pages-zh-CN.noarch : Chinese Man Pages from Chinese Man Pages Project
这是什么玩意?试试吧
# yum install -y man-pages
ok.
7.既然有man-pages-zh-CN,安装看看。结果证明中文化后的帮助文档惨不忍睹,还是卸载算鸟。
总结:
yum的依赖管理不一定管用。
安装man的标准姿势是:
yum install -y man man-pages