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. 现在可以使用拉!!

相关文章:

  • 2021-11-05
  • 2021-06-19
  • 2021-08-25
  • 2021-12-03
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-13
  • 2021-05-08
  • 2022-02-23
  • 2021-12-03
  • 2022-12-23
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案