How To Install leptonica on Fedora 34

leptonica is C library for efficient image processing and image analysis operations C library for efficient image processing and image analysis operations

Introduction

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

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. leptonica 1.81.1 1.fc34 x86_64 1.1 M leptonica-1.81.1-1.fc34.src.rpm updates C library for efficient image processing and image analysis operations https 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install leptonica.

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

sudo dnf -y install leptonica

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

sudo yum -y install leptonica

How To Uninstall leptonica on Fedora 34

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

sudo dnf remove leptonica

leptonica Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/15
/usr/lib/.build-id/15/63af1bf2f5db70f674cee99f84ee2f44e2f27f
/usr/lib64/liblept.so.5
/usr/lib64/liblept.so.5.0.4
/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/44
/usr/lib/.build-id/44/5cebc5c5c8b6a5bb8da3eac1f5abb8d41662a2
/usr/lib/liblept.so.5
/usr/lib/liblept.so.5.0.4
/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/c0
/usr/lib/.build-id/c0/c5d4000d18e854344975792cfb8073b818bca3
/usr/lib64/liblept.so.5
/usr/lib64/liblept.so.5.0.4
/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/df
/usr/lib/.build-id/df/d4d354fed0269fd50c8eda8d3fd0764278fc8f
/usr/lib/liblept.so.5
/usr/lib/liblept.so.5.0.4
/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 Fedora 34 using yum and dnf.