How To Install odt2txt on Fedora 34

odt2txt is Converts an OpenDocument to plain text

Introduction

In this tutorial we learn how to install odt2txt on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install odt2txt.

Install odt2txt on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install odt2txt

Install odt2txt on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install odt2txt

How To Uninstall odt2txt on Fedora 34

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

sudo dnf remove odt2txt

odt2txt Package Contents on Fedora 34

/usr/bin/odt2txt
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/ce728d392ab17b015f7eb654cec36f48489cd7
/usr/share/doc/odt2txt
/usr/share/doc/odt2txt/README.md
/usr/share/licenses/odt2txt
/usr/share/licenses/odt2txt/GPL-2
/usr/share/man/man1/odt2txt.1.gz

References

Summary

In this tutorial we learn how to install odt2txt on Fedora 34 using yum and dnf.