man手册汉化
1.下载中文man手册:
wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.2.tar.bz2/cab232c7bb49b214c2f7ee44f7f35900/manpages-zh-1.5.2.tar.bz2
2.下载解压man手册所要用到的依赖:
yum install bzip2
3.解压包:
tar -jxvf manpages-zh-1.5.2.tar.bz2
4.设置编译参数:
cd manpages-zh-1.5.2/ ./configure --disable-zhtw
5.编译安装:
make && make install
6.为了同时保留英文的man,所以我们这里重新建一个cman命令作为中文查询
vim /root/.bashrc
7.在.bashrc文件中增加:
alias cman='man -M /usr/local/share/man/zh_CN'
8.更新.bashrc使其生效:
source /root/.bashrc