man 中文安裝
轉載https://www.cnblogs.com/fyc119/p/7116295.html
感謝
linux中文man手冊安裝
1.下載原始碼
原始碼網址 https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/
下載原始碼 wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/v1.5.2.tar.gz/1bbdc4f32272df0b95146518b27bf4be/v1.5.2.tar.gz
[[email protected] opt]# wget https://src.fedoraproject.org/repo/pkgs/man-pages-zh-CN/manpages-zh-1.5.1.tar.gz/13275fd039de8788b15151c896150bc4/manpages-zh-1.5.1.tar.gz
2.解壓並安裝
[[email protected] opt]# tar xf manpages-zh-1.5.1.tar.gz
[[email protected] opt]# cd manpages-zh-1.5.2/
[[email protected] manpages-zh-1.5.1]# ./configure --disable-zhtw --prefix=/usr/local/zhman
[[email protected] manpages-zh-1.5.1]# make && make install
3. 為了不抵消man,我們新建cman命令作為中文查詢
[[email protected] man1]# cd ~
[[email protected] ~]# echo "alias cman='man -M /usr/local/zhman/share/man/zh_CN' " >>.bash_profile
[[email protected] ~]# source .bash_profile
4.使用中文man查詢命令
[[email protected] ~]# cman ls