Hi, I just started to use Fedora
I have tried to install Tesseract through snap, rpm, command, but can not install all languages available of tesseract
the better is just english
if there is a package or command or repo to install all languages please help
welcome to Fedora. The tesseract package is available from the Fedora repository, which means that you can install it directly without having to search for something. You are mentioning Snap, but this is not a standard way to go around Fedora, so I would avoid it if I were you.
The newbie way of installing things is to use a package manager, such as Software or Discover. It depends if you are on Gnome or KDE. However, you should be aware that the Gnome’s Software only offers graphical applications and if you try and search for Tesseract, you are getting a shooter game and not the OCR application (see the screenshot).
Therefore, it is best to use the CLI dnf package manager, which is easy to use once you learn how to do it. To install tesseract, you should:
Search for the tesseract package and take a look what options you have:
sudo dnf search tesseract
When you inspect the output, you will see that the application itself exists as a tesseract package, and the languages come as standalone packages, so that you can only install the language you want and need.
Install the application:
sudo dnf install tesseract
however this will install the application itself, but no langugage packs.
Install the required language packs, such as
sudo dnf install tesseract-langpack-eng
which will install the English language for tesseract. If you want to install all languages in one command to save time, you can use wildcards to specify the package names, such as
sudo dnf install tesseract-langpack-*
which will install all packages with the name tesseract-langpack- and you will have all the languages installed.
The following is the screenshot from Software so that you can see that the graphical package manager does not really list all the applications, but rather shows the graphical ones.