CentOS7 中文man(cman)配置方法

1. 下载中文man包

 http://pkgs.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.1.tar.gz/13275fd039de8788b15151c896150bc4/,并下载下来。

2. 解压编译安装

tar zxvf manpages-zh-1.5.1.tar.gz          
cd manpages-zh-1.5.1
./configure --prefix=/usr/local/zhman --disable-zhtw          
make
make install

3. 为了不抵消man,我们新建cman命令作为中文查询

cd ~
vi .bash_profile
在.bash_profile中增加:
alias cman=‘man -M /usr/local/zhman/share/man/zh_CN‘       
source .bash_profile                       //更新bash_profile 使其生效

4. 现在可以使用拉!!

原文地址:https://www.cnblogs.com/phpk/p/10514849.html