How To Install catdoc on Debian 11

In this tutorial we learn how to install catdoc on Debian 11. catdoc is text extractor for MS-Office files

Introduction

In this tutorial we learn how to install catdoc on Debian 11.

What is catdoc

catdoc is:

The catdoc program reads one or more Microsoft Word files and outputs their contents to standard output as text.

It is accompanied by xls2csv, a program which converts Excel spreadsheets into comma-separated-values format, and catppt, a utility to extract textual information from PowerPoint files.

It doesn’t try to preserve Word formatting; its goal is to extract plain text and allow you to read it (and, probably, reformat it with TeX).

This package suggests tk because it also includes wordview, an optional Tk-based GUI for catdoc. The MIME config provided in this package will use wordview if X is running, or catdoc directly if it is not.

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

Install catdoc Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install catdoc

Install catdoc Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install catdoc

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

sudo aptitude -y install catdoc

How To Uninstall catdoc on Debian 11

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

sudo apt-get remove catdoc

Uninstall catdoc And Its Dependencies

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

sudo apt-get -y autoremove catdoc

Remove catdoc Configurations and Data

To remove catdoc configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge catdoc

Remove catdoc configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge catdoc

Dependencies

catdoc have the following dependencies:

References

Summary

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