How To Install leptonica on Rocky Linux 8

In this tutorial we learn how to install leptonica on Rocky Linux 8. leptonica is C library for efficient image processing and image analysis operations

Introduction

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

What is leptonica

The library supports many operations that are useful on * Document images * Natural images Fundamental image processing and image analysis operations * Rasterop (aka bitblt) * Affine transforms (scaling, translation, rotation, shear) on images of arbitrary pixel depth * Projective and bi-linear transforms * Binary and gray scale morphology, rank order filters, and convolution * Seed-fill and connected components * Image transformations with changes in pixel depth, both at the same scale and with scale change * Pixelwise masking, blending, enhancement, arithmetic ops, etc.

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

Install leptonica 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 leptonica using dnf by running the following command:

sudo dnf -y install leptonica

Install leptonica 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 leptonica using yum by running the following command:

sudo yum -y install leptonica

How To Uninstall leptonica on Rocky Linux 8

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

sudo dnf remove leptonica

leptonica Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/2836c87d40e56008dd2edca8933fb4f0365850
/usr/lib64/liblept.so.5
/usr/lib64/liblept.so.5.0.3
/usr/share/doc/leptonica
/usr/share/doc/leptonica/README.html
/usr/share/doc/leptonica/version-notes.html
/usr/share/licenses/leptonica
/usr/share/licenses/leptonica/leptonica-license.txt
/usr/lib/.build-id
/usr/lib/.build-id/69
/usr/lib/.build-id/69/88c32fc9a42565b2aeadae08bfe71390703fc1
/usr/lib/liblept.so.5
/usr/lib/liblept.so.5.0.3
/usr/share/doc/leptonica
/usr/share/doc/leptonica/README.html
/usr/share/doc/leptonica/version-notes.html
/usr/share/licenses/leptonica
/usr/share/licenses/leptonica/leptonica-license.txt

References

Summary

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