How To Install leptonica on CentOS 8
Introduction
In this tutorial we learn how to install leptonica
on CentOS 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. leptonica 1.76.0 2.el8 x86_64 1.0 M leptonica-1.76.0-2.el8.src.rpm powertools C library for efficient image processing and image analysis operations https BSD and 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install leptonica.
Install leptonica 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 leptonica
using dnf
by running the following command:
sudo dnf -y install leptonica
Install leptonica 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 leptonica
using yum
by running the following command:
sudo yum -y install leptonica
How To Uninstall leptonica on CentOS 8
To uninstall only the leptonica
package we can use the following command:
sudo dnf remove leptonica
leptonica Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/f4e141be626bb46a45f6d85360bea2862ce48b
/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/74
/usr/lib/.build-id/74/d3620d93ef7b6b1168382c35ae9878a732b88d
/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
- [leptonica website](https://github.com/danbloomberg/leptonica https://github.com/danbloomberg/leptonica)
Summary
In this tutorial we learn how to install leptonica
on CentOS 8 using yum and dnf.