How To Install libchafa-dev on Debian 12

Learn how to install libchafa-dev on Debian 12 with this tutorial. libchafa-dev is development files for image-to-text converter chafa

Introduction

In this tutorial we learn how to install libchafa-dev on Debian 12.

What is libchafa-dev

libchafa-dev 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 development files.

There are three methods to install libchafa-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libchafa-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libchafa-dev using apt-get by running the following command:

sudo apt-get -y install libchafa-dev

Install libchafa-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libchafa-dev using apt by running the following command:

sudo apt -y install libchafa-dev

Install libchafa-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libchafa-dev using aptitude by running the following command:

sudo aptitude -y install libchafa-dev

How To Uninstall libchafa-dev on Debian 12

To uninstall only the libchafa-dev package we can use the following command:

sudo apt-get remove libchafa-dev

Uninstall libchafa-dev And Its Dependencies

To uninstall libchafa-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libchafa-dev

Remove libchafa-dev Configurations and Data

To remove libchafa-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libchafa-dev

Remove libchafa-dev configuration, data, and all of its dependencies

We can use the following command to remove libchafa-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libchafa-dev

Dependencies

libchafa-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libchafa-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.