-bash: fc-cache: command not found 错误解决方法

执行 fc-cache -fv 命令的时候报 -bash: fc-cache: command not found 错误,需要安装 fontconfig 解决。

CentOS:

yum install fontconfig -y

Ubuntu/Debian

apt-get install fontconfig