I have an RHEL based server that does not connect to the internet. I need to install Tesseract >4.0 on this server. Therefore, my option was to download RPM packages from another and move them to the server and install using rpm command. I have used (https://build.opensuse.org/project/show/home:Alexander_Pozdnyakov) from the official tesseract documentation to download the RPM.

The issue is when I try to install those RPMs, they have a lot of other dependencies which is very difficult to get one by one. Are there any other alternatives to install tesseract without connecting to the internet? Or any other source to download all RPMs at once?


Solution N1:

On a similar PC which is connected to the Internet do the following (under root/sudo):

dnf install --downloadonly Tesseract.rpm

Then copy all the downloaded RPMs from /var/cache/dnf to your destination PC and run

rpm -ivh *rpm

Solution N2:

Granted you have a RedHat DVD install disk either mounted or extracted to /media/dvd create a repo file for yum (save it as /etc/yum.repos.d/rhel-dvd.repo):

name=DVD-RHEL Repository

and then run (under root/sudo):

dnf install Tesseract.rpm
  • 2
    It's possible you will need to substitute dnf with yum, depending on the RHEL version.
    – schaiba
    Aug 19 '20 at 11:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.