How To Install gocr on Fedora 34

gocr is GNU Optical Character Recognition program

Introduction

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

What is gocr

GOCR is an OCR (Optical Character Recognition) program, developed under the GNU Public License. It converts scanned images of text back to text files. Joerg Schulenburg started the program, and now leads a team of developers. GOCR can be used with different front-ends, which makes it very easy to port to different OSes and architectures. It can open many different image formats, and its quality have been improving in a daily basis.

We can use yum or dnf to install gocr on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install gocr.

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

sudo dnf -y install gocr

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

sudo yum -y install gocr

How To Uninstall gocr on Fedora 34

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

sudo dnf remove gocr

gocr Package Contents on Fedora 34

/usr/bin/gocr
/usr/lib/.build-id
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/ee5cebd03a294c25bfa251bdf3df7955e28d69
/usr/share/doc/gocr
/usr/share/doc/gocr/AUTHORS
/usr/share/doc/gocr/BUGS
/usr/share/doc/gocr/CREDITS
/usr/share/doc/gocr/HISTORY
/usr/share/doc/gocr/README
/usr/share/doc/gocr/READMEde.txt
/usr/share/doc/gocr/REMARK.txt
/usr/share/doc/gocr/REVIEW
/usr/share/doc/gocr/TODO
/usr/share/doc/gocr/gocr.html
/usr/share/doc/gocr/gpl.html
/usr/share/man/man1/gocr.1.gz

References

Summary

In this tutorial we learn how to install gocr on Fedora 34 using yum and dnf.