How To Install tesseract on Rocky Linux 8

In this tutorial we learn how to install tesseract on Rocky Linux 8. tesseract is Raw OCR Engine

Introduction

In this tutorial we learn how to install tesseract on Rocky Linux 8.

What is tesseract

A commercial quality OCR engine originally developed at HP between 1985 and 1995. In 1995, this engine was among the top 3 evaluated by UNLV. It was open-sourced by HP and UNLV in 2005.

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

Install tesseract on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install tesseract

Install tesseract on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install tesseract

How To Uninstall tesseract on Rocky Linux 8

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

sudo dnf remove tesseract

tesseract Package Contents on Rocky Linux 8

/usr/bin/tesseract
/usr/lib/.build-id
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/10467709462ac00ee18a76ee3d183fd49e1c57
/usr/lib/.build-id/5c
/usr/lib/.build-id/5c/1abf8fdc685b0463bedc3b55284624c726773a
/usr/lib64/libtesseract.so.4
/usr/lib64/libtesseract.so.4.0.1
/usr/share/doc/tesseract
/usr/share/doc/tesseract/AUTHORS
/usr/share/doc/tesseract/ChangeLog
/usr/share/doc/tesseract/README.md
/usr/share/licenses/tesseract
/usr/share/licenses/tesseract/LICENSE
/usr/share/tesseract
/usr/share/tesseract/tessdata
/usr/share/tesseract/tessdata/configs
/usr/share/tesseract/tessdata/configs/alto
/usr/share/tesseract/tessdata/configs/ambigs.train
/usr/share/tesseract/tessdata/configs/api_config
/usr/share/tesseract/tessdata/configs/bigram
/usr/share/tesseract/tessdata/configs/box.train
/usr/share/tesseract/tessdata/configs/box.train.stderr
/usr/share/tesseract/tessdata/configs/digits
/usr/share/tesseract/tessdata/configs/get.images
/usr/share/tesseract/tessdata/configs/hocr
/usr/share/tesseract/tessdata/configs/inter
/usr/share/tesseract/tessdata/configs/kannada
/usr/share/tesseract/tessdata/configs/linebox
/usr/share/tesseract/tessdata/configs/logfile
/usr/share/tesseract/tessdata/configs/lstm.train
/usr/share/tesseract/tessdata/configs/lstmbox
/usr/share/tesseract/tessdata/configs/lstmdebug
/usr/share/tesseract/tessdata/configs/makebox
/usr/share/tesseract/tessdata/configs/pdf
/usr/share/tesseract/tessdata/configs/quiet
/usr/share/tesseract/tessdata/configs/rebox
/usr/share/tesseract/tessdata/configs/strokewidth
/usr/share/tesseract/tessdata/configs/tsv
/usr/share/tesseract/tessdata/configs/txt
/usr/share/tesseract/tessdata/configs/unlv
/usr/share/tesseract/tessdata/configs/wordstrbox
/usr/share/tesseract/tessdata/pdf.ttf
/usr/share/tesseract/tessdata/tessconfigs
/usr/share/tesseract/tessdata/tessconfigs/batch
/usr/share/tesseract/tessdata/tessconfigs/batch.nochop
/usr/share/tesseract/tessdata/tessconfigs/matdemo
/usr/share/tesseract/tessdata/tessconfigs/msdemo
/usr/share/tesseract/tessdata/tessconfigs/nobatch
/usr/share/tesseract/tessdata/tessconfigs/segdemo

References

Summary

In this tutorial we learn how to install tesseract on Rocky Linux 8 using yum and dnf.