汉化Linux系统
yum install -y langpacks-zh_CN
# centos8 与 redhat8 中文语言包
sed -i 's/LANG=.*/LANG="zh_CN.UTF-8"/g' /etc/locale.conf
# 修改为中文,/g 作用于双引号不被解析
source /etc/locale.conf
# 立即生效
汉化man
//获取安装包
# 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
//解压并安装(最好使用root)
# tar xf manpages-zh-1.5.1.tar.gz
# cd manpages-zh-1.5.1/
# ./configure --disable-zhtw --prefix=/usr/local/zhman
# make && make install
//为了不覆盖man指令,新建cman命令作为中文查询
# cd ~
# echo "alias cman='man -M /usr/local/zhman/share/man/zh_CN' " >>.bash_profile
# source .bash_profile
# cman ls