How To Install catdoc on Debian 9

In this tutorial we learn how to install catdoc on Debian 9. catdoc is Convert Word, Excel, and PowerPoint files to plain text

Introduction

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

What is catdoc

catdoc is:

The catdoc program reads one or more Microsoft word files and outputs text, contained insinde them to standard output.

It is now accompanied by xls2csv, a program which converts Excel spreadsheet into comma-separated value file, and catppt a utility to extract textual information from Powerpoint files.

It doesn’t try to preserve Word formatting, it’s goal is to extract plain text and allow you to read it and, probably, reformat 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 9. 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 9

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 9, 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 9 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 9 using different package management tools: apt, apt-get and aptitude.