chafa command not found

In this troubleshooting guide we learn how to fix chafa command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

chafa: command not found

or when using sudo you get the following error message

sudo: chafa: command not found

Solutions to chafa: command not found

How To Fix chafa: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu chafa is provided by chafa package.

chafa is:

Chafa is a command-line utility that converts all kinds of images, including animated image formats like GIFs, into ANSI/Unicode character output that can be displayed in a terminal.

It is highly configurable, with support for alpha transparency and multiple color modes and color spaces, combining a range of Unicode characters for optimal output.

The core functionality is provided by a C library with a public, well-documented API.

This package ships the command line tool.

To fix this problem, we can install more using the command below.

sudo apt-get -y install chafa

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install chafa.

sudo apt -y install chafa

Or if you have aptitude installed you can use the following command.

sudo aptitude install chafa

Summary

In this tutorial we learn how to fix chafa command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.