Before you begin
Even though you want to install Web Client on an offline machine, you need to have required packages to be available. For this, you need to perform from Step-1 through Step-8 to download these required packages on a machine that is connected to the internet and then manually copy the packages to the offline machine.
About this task
Use this method of installation if you want to install Plant Applications Web Client in an offline mode.Procedure
- Ensure that you are connected to the internet until Step-5. Create a requirements.txt file.
- Open the requirements.txt file and copy below 3 lines (no line spaces in between) into the file and save it.
pymssql==2.1.4
ansible==2.9.0
Jinja2==2.10
- Run the command
mkdir offlinepackages && pip download -r requirements.txt -d offlinepackages
to download the offline packages dependencies.Once the command is executed the offlinepackages directory is created.
- Copy the requirements.txt file into the offlinepackages directory.
- Run the
tar -zcf offlinepackages.tar.gz offlinepackages
command. - Uninstall pymssql, ansible, and jinja2.
- Create a new directory offline_rpms using the
mkdir offline_rpms
command. - Run the following commands to download the freetds rpm packages to the offline_rpms folder.
sudo wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum install --downloadonly --downloaddir=offline_rpms freetds freetds-devel
Once the above commands are executed, you can see the below rpm packages downloaded to the
offline_rpms folder.
freetds-1.1.20-1.el7.x86_64.rpm
freetds-devel-1.1.20-1.el7.x86_64.rpm
freetds-libs-1.1.20-1.el7.x86_64.rpm
Perform Step-9 through Step-15 on a offline machine where you want to install Plant Applications Web Client.
- Copy the offline_rpms folder and the offlinepackages.tar.gz file to any selected path on the target machine.
- Navigate to the offline_rpms folder.
- From the offline_rpms folder, run the following commands to install the rpm packages locally.
sudo yum localinstall freetds-1.1.20-1.el7.x86_64.rpm
sudo yum localinstall freetds-devel-1.1.20-1.el7.x86_64.rpm
sudo yum localinstall freetds-libs-1.1.20-1.el7.x86_64.rpm
- Navigate to the folder where the offlinepackages.tar.gz file was copied.
- To extract the file, run
tar -zxf offlinepackages.tar.gz
. - Run
pip install -r offlinepackages/requirements.txt --no-index --find-links offlinepackages
to install the libs and their dependencies. - Perform the installation.