Date: Thu, 28 Mar 2024 19:42:30 +0000 (UTC) Message-ID: <262514893.23.1711654950428@524557e09bee> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_22_652174451.1711654950427" ------=_Part_22_652174451.1711654950427 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
THE STEPS MENTIONED HERE ARE FOR OLDER VERSION OF BAHMNI. THE RECOMMENDE= D WAY TO INSTALL BAHMNI IS NOW VIA DOCKER. PLEASE SEE THIS DOCUMENTATION IN= STEAD: Running Bahmni with Docker with No/Poor Internet
For supporting Bahmni installation without internet, all the required pa=
ckages for Bahmni should be cached in the machine which means should be loc=
ally 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 cop=
y the cached packages to the target machine. In general, we need Sourc=
e Machine (Machine which has internet). Using the packages cached under
These steps have not been verified on latest versions of Bahmni. Proceed= with caution. We welcome community contribution to validate these steps. A= nother option is to consider downloading Bahmni vagran= t box and then use that to run Bahmni in a non-internet location. =
Note: Bahmni does NOT need internet to run. It only nee= ds internet for installation/upgrading of packages.
Please ensure you perform these steps on a fresh/clean CentOS server wit= hout any dependencies already installed. This will ensure that all dependen= cies are saved in the cache directories and are available when the same ste= ps are performed on the target machine.
sudo se= d -i "s|keepcache=3D0|keepcache=3D1|g" /etc/yum.conf
mkdir /= etc/yum_cache
sudo se= d -i "s|cachedir=3D/var/cache/yum/\$basearch/\$releasever|cachedir=3D/etc/y= um_cache|g" /etc/yum.conf
Refer Install Bahmni on CentOS (Advanced Installation Options)= a>
Check if the installation successfully completed without any failures. A= lso make sure Bahmni is running without any issues.
mkdir /= artifact_backup cp -r /etc/yum_cache /artifact_backup mkdir /artifact_backup/pip_cache cp -r /root/.cache/pip /artifact_backup/pip_cache mkdir /artifact_backup/opt_cache cp -r /opt/*.rpm /artifact_backup/opt_cache cp -r /usr/lib/python2.6/site-packages/click-6.7-py2.6.egg /artifact_backup= /click_cache cp -r /usr/lib/python2.6/site-packages/nonblockingloghandler* /artifact_bac= kup/click_cache/
If click-6.7-py2.6.egg is not available, then please copy click-6.6-py2.= 6.egg
cp -r /= usr/lib/python2.6/site-packages/click-6.6-py2.6.egg /artifact_backup/click_= cache
Please choose the valid Bahmni version. For Example, in the below sample= command the version chosen is 0.89-167
wget ht= tps://repo.mybahmni.org/releases/bahmni-installer-0.92-155.noarch.rpm -O /o= pt
Please ensure you have performed the steps mentioned above (with interne= t) first.
If we have a slave machine then please perform the below steps for slave= as well.
Prerequisites
Move the artifact_backup folder with below fil= es (from the source machine as mentioned above) to Target Machine
sudo se= d -i "s|keepcache=3D0|keepcache=3D1|g" /etc/yum.conf
sudo se= d -i "s|cachedir=3D/var/cache/yum/\$basearch/\$releasever|cachedir=3D/etc/y= um_cache|g" /etc/yum.conf
cd arti= fact_backup
Make sure to change the path of the directory above to exact folder path=
cp -r y= um_cache/* /etc/yum_cache mkdir /root/.cache cp -r pip_cache/* /root/.cache cp -r click_cache/* /usr/lib/python2.6/site-packages/=20 cp -r click_cache/nonblockingloghandler* /usr/lib/python2.6/site-packages/ cp -r opt_cache/* /opt
Please choose the valid Bahmni version. For Example, In the below sample= command the version chosen is 0.89-167
yum ins= tall /opt/bahmni-installer-0.92-155.noarch.rpm