To install Tesseract OCR with support for all languages on CentOS, you can use the package manager yum. Here are the steps to do this:


  1. Open the terminal.
  2. Run the command sudo yum update to update the package list.
  3. Run the command sudo yum install tesseract tesseract-langpack-all to install Tesseract OCR with support for all languages.


Alternatively, you can install only specific languages

  1. Run the command sudo yum install tesseract-langpack-<langcode> where <langcode> is the code for the language you want to install.


For example, to install support for French, you would run sudo yum install tesseract-langpack-fra.


You can verify that Tesseract OCR has been correctly installed by running the command tesseract --version which should display the version of Tesseract OCR installed on your system. Please note that before installing tesseract you need to add epel repository on your centos.


sudo yum install epel-release


Then install tesseract

sudo yum install tesseract tesseract-langpack-all