For supporting Bahmni installation without internet, all the required packages for Bahmni should be cached in the machine which means should be locally available in the non internet machine Bahmni should be installed. Therefore firstly, Install Bahmni in a machine which has internet with the cache set up turned on to locally cache the required packages and then copy the cached packages to the target machine. In general, we need Source Machine (Machine which has internet). Using the packages cached under Source Machine, any number of Target Machines (Machines without internet) can have Bahmni installed.
These steps have not been verified on latest versions of Bahmni. Proceed with caution. We welcome community contribution to validate these steps. Another option is to consider downloading Bahmni vagrant box and then use that to run Bahmni in a non-internet location.
Note: Bahmni does NOT need internet to run. It only needs internet for installation/upgrading of packages.
Steps to Install Bahmni on Source Machine (with internet)
Please ensure you perform these steps on a fresh/clean CentOS server without any dependencies already installed. This will ensure that all dependencies are saved in the cache directories and are available when the same steps are performed on the target machine.
Step 1: Change the yum configuration file to allow caching
sudo sed -i "s|keepcache=0|keepcache=1|g" /etc/yum.conf
Step 2 : Create a local cache directory
Step 3: Change the cache directory to previously created local cache (/etc/yum_cache)
sudo sed -i "s|cachedir=/var/cache/yum/\$basearch/\$releasever|cachedir=/etc/yum_cache|g" /etc/yum.conf