How To Install tesseract-tools on CentOS 8

tesseract-tools is Training tools for tesseract

Introduction

In this tutorial we learn how to install tesseract-tools on CentOS 8.

What is tesseract-tools

The tesseract-tools package contains tools for training tesseract.

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

Install tesseract-tools on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install tesseract-tools

Install tesseract-tools on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install tesseract-tools using yum by running the following command:

sudo yum -y install tesseract-tools

How To Uninstall tesseract-tools on CentOS 8

To uninstall only the tesseract-tools package we can use the following command:

sudo dnf remove tesseract-tools

tesseract-tools Package Contents on CentOS 8

/usr/bin/ambiguous_words
/usr/bin/classifier_tester
/usr/bin/cntraining
/usr/bin/combine_lang_model
/usr/bin/combine_tessdata
/usr/bin/dawg2wordlist
/usr/bin/language-specific.sh
/usr/bin/lstmeval
/usr/bin/lstmtraining
/usr/bin/merge_unicharsets
/usr/bin/mftraining
/usr/bin/set_unicharset_properties
/usr/bin/shapeclustering
/usr/bin/tesstrain.sh
/usr/bin/tesstrain_utils.sh
/usr/bin/text2image
/usr/bin/unicharset_extractor
/usr/bin/wordlist2dawg
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/469435847e64ea762fbef3b63733d7f80cacd1
/usr/lib/.build-id/13
/usr/lib/.build-id/13/153f8059f410d502600ad0bb06d5f2821ad355
/usr/lib/.build-id/19
/usr/lib/.build-id/19/9a7bd95f9a6629227e63237affc89cf0b33947
/usr/lib/.build-id/30
/usr/lib/.build-id/30/e9ad2f6b611efe58b601e2da9f4efc3f3fc5c7
/usr/lib/.build-id/39
/usr/lib/.build-id/39/5b95f030aeeaff06ada5986c220801ac6783a8
/usr/lib/.build-id/51
/usr/lib/.build-id/51/0c73a17fdb41be761f069c70c8751a76c37358
/usr/lib/.build-id/54
/usr/lib/.build-id/54/ddd9c49e0260e5402626b65b88ec8223544328
/usr/lib/.build-id/70
/usr/lib/.build-id/70/639825d4a6e64a9c7a94fa3769b3282a13f9b9
/usr/lib/.build-id/77
/usr/lib/.build-id/77/0df07f64d5f3615ddd75d359b676fa4dcb8742
/usr/lib/.build-id/95
/usr/lib/.build-id/95/41d233a43c27df3127e8e07871466e4c121799
/usr/lib/.build-id/96
/usr/lib/.build-id/96/b1c3c391cb0869e69bb2a68f495e4d18dd8a09
/usr/lib/.build-id/97
/usr/lib/.build-id/97/3ad5f3e8b019985b4cf4475b87c82593728f69
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/c3640ab5d65888ee81061bafa71c73f81700ba
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/c4f1a2102fdeb8390a2619ffe973f76ee11695
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/03e9a6f9f128b247fb39081c908691fefb31f6

References

Summary

In this tutorial we learn how to install tesseract-tools on CentOS 8 using yum and dnf.