fc-cat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
fc-cat: command not found
or when using sudo you get the following error message
sudo: fc-cat: command not found
Solutions to fc-cat: command not found
How To Fix fc-cat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu fc-cat is provided by fontconfig package.
fontconfig is:
Fontconfig is a font configuration and customization library, which does not depend on the X Window System. It is designed to locate fonts within the system and select them according to requirements specified by applications.
Fontconfig is not a rasterization library, nor does it impose a particular rasterization library on the application. The X-specific library ‘Xft’ uses fontconfig along with freetype to specify and rasterize fonts.
This package contains a program to maintain the fontconfig cache (fc-cache), a sample program to list installed fonts (fc-list), a program to test the matching rules (fc-match) and a program to dump the binary cache files in string form (fc-cat). It no longer makes fonts managed by defoma available to fontconfig applications.
To fix this problem, we can install more using the command below.
sudo apt-get -y install fontconfig
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install fontconfig.
sudo apt -y install fontconfig
Or if you have aptitude installed you can use the following command.
sudo aptitude install fontconfig
Summary
In this tutorial we learn how to fix fc-cat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.