Some of my customers have policies to install packages in offline environment. This article summarized useful commands for working with RHEL server.

Download and install packages for RHEL distribution

The following command prepares a folder with installation packages

yum install --downloadonly --downloaddir=<directory> <package>
yum --disablerepo=* localinstall *.rpm

Install python package from local

The following command installs keras package from local

pip install --no-index --find-links . keras