How To Install catdvi on Debian 12

Learn how to install catdvi on Debian 12 with this tutorial. catdvi is DVI to plain text translator

Introduction

In this tutorial we learn how to install catdvi on Debian 12.

What is catdvi

catdvi is:

CatDVI translates a TeX Device Independent (DVI) file into a readable plaintext file. It aims to generate high-quality output that reproduces all aspects of the DVI file within the limits of the output medium. CatDVI uses Unicode internally and can output ASCII, ISO Latin 1 and UTF-8 Unicode.

CatDVI can be used for previewing TeX documents on character-cell displays such as traditional terminals and terminal emulators. It is also possible to use it in generation of plain text documents from TeX source, assuming that the document is written with this conversion in mind.

CatDVI is under development and as such yet incomplete. However, it is quite useful even in its current form and already outperforms some of its competition in some areas.

CatDVI requires that the TFM files for all fonts used in its input DVI files are installed or can be generated by kpathsea.

There are three methods to install catdvi 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 catdvi Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install catdvi

Install catdvi Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install catdvi using apt by running the following command:

sudo apt -y install catdvi

Install catdvi 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 catdvi using aptitude by running the following command:

sudo aptitude -y install catdvi

How To Uninstall catdvi on Debian 12

To uninstall only the catdvi package we can use the following command:

sudo apt-get remove catdvi

Uninstall catdvi And Its Dependencies

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

sudo apt-get -y autoremove catdvi

Remove catdvi Configurations and Data

To remove catdvi configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge catdvi

Remove catdvi configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge catdvi

Dependencies

catdvi have the following dependencies:

References

Summary

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