How To Install odt2txt on CentOS 7

In this tutorial we learn how to install odt2txt on CentOS 7. odt2txt is Converts an OpenDocument to plain text

Introduction

In this tutorial we learn how to install odt2txt on CentOS 7.

What is odt2txt

odt2txt is a command-line tool which extracts the text out of OpenDocument Texts produced by LibreOffice, OpenOffice, StarOffice, KOffice and others. odt2txt is… * small * supports multiple output encodings * adopts to your locale * able to substitute common characters which the output charset does not contain with ascii look-a-likes * written in C, has few dependencies * portable (runs on Linux, *BSD, Solaris, HP-UX, Windows, Cygwin)

We can use yum or dnf to install odt2txt on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install odt2txt.

Install odt2txt on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install odt2txt using yum by running the following command:

sudo yum -y install odt2txt

Install odt2txt on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install odt2txt using dnf by running the following command:

sudo dnf -y install odt2txt

How To Uninstall odt2txt on CentOS 7

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

sudo dnf remove odt2txt

References

Summary

In this tutorial we learn how to install odt2txt on CentOS 7 using yum and dnf.